Setup private keys for ssh on the raspberry pi
From ETCwiki
Jump to navigationJump to searchThis one took me about 60 seconds to setup. Excellently easy on the raspberry pi and debian. This will setup private keys that act as an alternative to password logins. It allows for true one-click logins.
On the Raspberry Pi:
su cd /root mkdir .ssh cd .ssh ssh-keygen cat id_rsa.pub > authorized_keys chmod 600 authorized_keys
Now, copy id_rsa to your local computer and use that as your private key. If you are using putty, open puttygen and load the key, then save as a .ppk (putty private key) file and add to your putty config in the SSH section.