使用putty无密码登录Linux服务器

  1. Download PuTTY
  2. Download PuTTYgen
  3. Open PuTTYgen
    • Select SSH-2 RSA
    • Click ‘Generate’
  4. Save the Private Key
    • Click ‘Save private key’ (you do not have enter a password)
    • Save the private key in location easy to remember.
  5. Copy public-key
    • Select all text in the public key area.
    • right-click and select copy
  6. Configure the server settings in Putty
    • Open Putty
    • Click Session (left column)
      • Enter the server hostname or IP address
      • Enter a name under ‘Saved Sessions’
    • Click Connection > Data (left column)
      • Enter ‘root’ for the auto-login username
    • Click Connection > SSH (left column)
      • Select ’2′ as the Preferred SSH protocol version.
    • Click Connection > SSH > Auth (left column)
      • Browse to the private key from step 4.
    • Click Session (left column)
      • Click Save
  7. Open a session with the server
    • Open PuTTY
    • Select the session saved earlier.
    • Click ‘Load’
    • Click ‘Open’
    • Login
回顶部