Difference between revisions of "Private Key Login - Raspberry Pi"

From ETCwiki
Jump to navigationJump to search
 
(No difference)

Latest revision as of 18:08, 25 September 2013

This 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:

  1. copy "id_rsa" from /root/.ssh on the pi to your computer
  2. open PuTTygen on windows
  3. load the private keyfile you just downloaded (id_rsa) Note: You will have to search for *.* All file types
  4. save as a putty private key file with extension .ppk
  5. load your RPi session in putty, and enter the key location and name in the SSH section