Wednesday, 16 August 2017

Is there a way to "auto login" in PuTTY with a password?


Is there a way to configure a password for a stored session in PuTTY?


I know there is the capability to specify an "auto-login username" (under Connection/Data), but is there a way to do the same with the password?



Answer



For some versions of PuTTY, it's as simple as one of:


putty.exe mylogin@somewhere.com -pw mypassword
putty.exe somewhere.com -l mylogin -pw mypassword

If you want to connect using SSH, use this:


putty.exe -ssh root@somewhere.com -pw mypasswordforsomewherecom

For those using Windows, you can simply create a shortcut and pass in these parameters.


For example:



  1. Create a shortcut on the desktop to putty.exe

  2. Rename the shortcut to PuTTY - server.com

  3. Right-click shortcut and choose Properties

  4. Modify the target similar to: "C:\Program Files\PuTTY\putty.exe" user@server.com -pw password

  5. Click OK


If your PuTTY does not support the pw parameter, you will need a public key as explained in:
Creating and Copying Your Key-Pair in PuTTY SSH Client.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...