Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I store my connection passwords in putty?

share|improve this question

migrated from stackoverflow.com Jan 31 '10 at 18:10

This question came from our site for professional and enthusiast programmers.

1  
Its best to use kitty it does everything whatever we need.It store password and not needed to enter it again –  user116707 Feb 3 '12 at 18:36

10 Answers 10

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.

share|improve this answer

You can't, it's by design.

See Putty wish remember-passwords

share|improve this answer

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.

share|improve this answer
    
+1 Beat me to the punch. :) –  Pekka 웃 Jan 31 '10 at 16:11
1  
"anyone who gains access to your machine while you're away from your desk can find out the remembered password" How is that different than someone who gains access to your machine and copies your PEM file? –  wisbucky Sep 25 '13 at 20:26

You can use Kitty, which is a fork of Putty.

share|improve this answer
    
Indeed Kitty saves the passwords. Does it saves them encryoted? –  john Mar 8 '12 at 6:36

In Windows, you can create a shortcut which links to:

putty -load "Default Settings" -l username -pw password
share|improve this answer

I had this problem a while back, you can use mRemote as an SSH (as well as VNC, RDP and Citrix) client that does.

share|improve this answer
    
Does it saves the passwords encrypted? –  john Mar 8 '12 at 6:36
    
mRemoteNG is a fork of mRemote and it is actively maintained, contrary to mRemote which seems that development stoped at 2008 mremoteng.org –  john Mar 8 '12 at 6:37

I use .bat files like

putty root@66.66.66.66 -pw password
share|improve this answer

You can also try Tunnelier which supports saving passwords in profiles. It also functions as an SFTP client.

share|improve this answer

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.

share|improve this answer

You can use Putty connection manager which can be configured using a logon macro to login to servers automatically.

share|improve this answer

protected by studiohack Feb 3 '12 at 18:40

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.