SSH Key setup - Raspberry Pi Forums
i've been happily using rpi via putty windows laptop months now, , decided should stop password nonsense , set ssh public-key system.
used number of guides - notably [this one](http://www.howtoforge.com/ssh_key_based_logins_putty_p2) [this one](http://wp.a-programmer.com/2010/06/14/s ... d-our-key/), , [this one](http://wp.a-programmer.com/2010/06/14/s ... d-our-key/), keep running against same error. when try log on using ssh key, "server refused our key", before being asked password before.
steps took:
(obviously, haven't got far setting pageant yet)
i've looked in /var/log/auth.log, doesn't mention failed attempts or access denied - successful login:
i've been advised in /var/log/secure, file doesn't exist on system.
more debugging (or general) advice offer appreciated.
used number of guides - notably [this one](http://www.howtoforge.com/ssh_key_based_logins_putty_p2) [this one](http://wp.a-programmer.com/2010/06/14/s ... d-our-key/), , [this one](http://wp.a-programmer.com/2010/06/14/s ... d-our-key/), keep running against same error. when try log on using ssh key, "server refused our key", before being asked password before.
steps took:
- generated keys puttygen
- saved private key .ppk file
- copy-pasted public key
code: select all
~/.ssh/authorized_keys - set profile on putty - auto-login username "pi" under connection / data, , set private key file under connection / ssh / auth
- saved profile
- set permissions on ,
code: select all
~/.ssh/authorized_keystry log on putty: following messages:code: select all
~/.ssh/
code: select all
using username "pi". server refused our key pi@192.168.0.18's password:i've looked in /var/log/auth.log, doesn't mention failed attempts or access denied - successful login:
code: select all
nov 16 21:29:45 raspberrypi sshd[21905]: accepted password pi 192.168.0.13 port 55099 ssh2more debugging (or general) advice offer appreciated.
you set permissions ensure ~/.ssh/authorized_keys chmod 600 , ~/.ssh chmod 700. common error. make sure pasted public key in ~/.ssh/authorized_keys 1 line, editor may have wrapped it.
raspberrypi
Comments
Post a Comment