For some versions of Putty it’s as simple as:
putty.exe root@example.com -pw mypasswordforexamplecom
For those using Windows, you can simply create a shortcut and pass in those parameters. For example:
- Create a shortcut on desktop to putty.exe
- Rename the shortcut to “PuTTY – example.com”
- Right-click shortcut and choose Properties
- Modify the target similar to: “C:\Program Files\PuTTY\putty.exe”
user@example.com -pw password
- You can also use IP Address of host in place of domain host name
- Click OK
Otherwise, you need to use a public key as explained here : “Creating and Copying Your Key-Pair in PuTTY SSH Client”.
2 replies on “save username password in putty to auto-login”
Hello Swatantra Kumar,
Thanks for the info on “save username password in putty to auto-login”
The procedure works for the first time login. If we try to restart or duplicate session, the password is requested again.
Is there any solution to avoid this.
Thank you.
You can create the shortcut on desktop, and use this shortcut to open multiple session without supplying credentials manually again and again.