Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

How can I store my connection passwords in putty?

share|improve this question

migrated from Jan 31 '10 at 18:10

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

marked as duplicate by mdpc, fixer1234, DavidPostill, agtoever, nc4pk Feb 26 '15 at 15:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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
I use WinSCP to auto login in PuTTY with a password. – Franck Dernoncourt Jan 1 at 17:55

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

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

putty -load "Default Settings" -l username -pw password
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
"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
if someone gains access to your machine while you're away you're already doing something wrong – xorinzor Jun 30 '15 at 7:28

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

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 – john Mar 8 '12 at 6:37

I use .bat files like

putty root@ -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 or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

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

Not the answer you're looking for? Browse other questions tagged .