Putty auto login with password

  • 29 April 2016
  • ADM


Putty auto login with password - images/logos/windowslinux.jpg


Probably all of us who works on daily basis with Linux servers faces this "problem": login with putty on remote server with user and password for one hundred time a day. A solution would be to save the username and the password, so one step to do the job. Of course this is not a secure way to do it, but is suitable for test servers and also from personal computers.

First, just to make sure you don't have an too old version of putty, download the latest version.

If you want to connect to SSH using putty the command will be:

putty -ssh username@hostname.com -pw password

On Windows you can simply create a shortcut and add the credentials as parameters:

  1. Create a shortcut on your desktop to putty.exe;
  2. (optional) Rename the shortcut to something suggestive, e.g putty - username@hostname.com;
  3. Right-click on shortcut and choose Properties;
  4. Modify target to: "<path_to_putty>.exe" username@hostname.com -pw password;
  5. click OK.

Enjoy the shortcut!