Private Key Login - Raspberry Pi
From ETCwiki
Jump to navigationJump to searchThis requires you to be logged into the Raspberry Pi on PuTTy or similar ssh client and logged into root (or the user you want to make keys for)
On the Raspberry Pi:
su cd /root mkdir .ssh cd .ssh ssh-keygen cat id_rsa.pub > authorized_keys chmod 600 authorized_keys
On your (Windows) computer:
- copy "id_rsa" from /root/.ssh on the pi to your computer
- open PuTTygen on windows
- load the private keyfile you just downloaded (id_rsa) Note: You will have to search for *.* All file types
- save as a putty private key file with extension .ppk
- load your RPi session in putty, and enter the key location and name in the SSH section