Wednesday, December 10, 2008

Putty authorized keys

  1. Install Putty
  2. Generate the key
  3. Enter a pass phrase
  4. Select the generated public key and copy to the clipboard
  5. Save the private and public keys somehwere sensible
  6. ssh into the server that will hold the public key
  7. Make a .ssh directory in ~: mkdir .ssh
  8. Set access to .ssh : chmod 700 .ssh
  9. Enter the command: cat > .ssh/authorized_keys
  10. Paste the test from the clipboard
  11. Hit CTRL-D to exit
  12. Set the access on the authorized_keys file: chmod 644 .ssh/authorized_keys
  13. Start Pagent and add the new private key (passphrase entered above will be required)
Check that it worked by using putty to ssh in to the server.

No comments:

Post a Comment