Wednesday, July 8, 2009

Using Putty to have passwordless login

Step 1: Go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and download puttygen.exe



Step 2: Open PuttyGen.exe,
  • Click Generate
  • To provide randomness, move the mouse randomly on the blank are


Step 3:

  • Copy public-key by copying all the text in the public text-box

Step 4: Open Putty

  • Connection > Data.
  • Under ‘’ for the auto-login username
  • Connection > SSH > Auth (left column) > Browse to the private key
  • Save the setting

Step 5: Login to the linux server

  • vim ~/.ssh/authorized_keys2
  • Paste and save the public Key content saved in Step 3
  • chmod 700 ~/.ssh
  • chmod 644 ~/.ssh/authorized_keys2

Articles:

No comments: