How can I store my connection passwords in putty?
9 Answers
On Windows, you can create a shortcut which links to:
putty -load "Default Settings" -l username -pw password
- 13,200
I would suggest you use key-based authentication. Then you can use an agent to store your passphrase. For PuTTY, take a look at pageant.
- 4,069
A.2.8 Does PuTTY have the ability to remember my password so I don't have to type it every time?
No, it doesn't.
Remembering your password is a bad plan for obvious security reasons: anyone who gains access to your machine while you're away from your desk can find out the remembered password, and use it, abuse it or change it.
In addition, it's not even possible for PuTTY to automatically send your password in a Telnet session, because Telnet doesn't give the client software any indication of which part of the login process is the password prompt. PuTTY would have to guess, by looking for words like ‘password’ in the session data; and if your login program is written in something other than English, this won't work.
In SSH, remembering your password would be possible in theory, but there doesn't seem to be much point since SSH supports public key authentication, which is more flexible and more secure. See chapter 8 in the documentation for a full discussion of public key authentication.
I use .bat files like
putty root@66.66.66.66 -pw password
You can also try Tunnelier which supports saving passwords in profiles. It also functions as an SFTP client.
- 1,395
This is a very bad idea.
It is impossible with Putty alone, as it spawns an actual Window. HOWEVER, if you feel that this is good idea for you for whatever reason, download the port of the ssh Linux client to Windows and pipe in the username/password.
Again that is a bad idea.
A GOOD IDEA would be to setup a set of keys, and this would allow for passwordless login.
- 2,157