17

How can I store my connection passwords in putty?

2
  • 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, 2012 at 18:36
  • I use WinSCP to auto login in PuTTY with a password. Jan 1, 2016 at 17:55

10 Answers 10

13

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.

12

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

putty -load "Default Settings" -l username -pw password
9

You can't, it's by design.

See Putty wish remember-passwords

6

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.

2
  • 7
    "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, 2013 at 20:26
  • 2
    if someone gains access to your machine while you're away you're already doing something wrong
    – xorinzor
    Jun 30, 2015 at 7:28
3

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

2
  • Indeed Kitty saves the passwords. Does it saves them encryoted?
    – john
    Mar 8, 2012 at 6:36
  • 2
    It saves them encryottled, but since kitty can decrypt them, anyone can.
    – Daniel
    Jun 1, 2018 at 12:47
1

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

2
  • Does it saves the passwords encrypted?
    – john
    Mar 8, 2012 at 6:36
  • 1
    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, 2012 at 6:37
1

I use .bat files like

putty root@66.66.66.66 -pw password
0

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

0

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.

0

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

1
  • Notice: Link is broken.
    – Sam Sirry
    Mar 8, 2020 at 14:37

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