Store passwords in putty

17

3

How can I store my connection passwords in putty?

Quintin Par

Posted 2010-01-31T16:09:21.757

Reputation: 1 105

Question was closed 2015-02-26T15:47:05.287

I use WinSCP to auto login in PuTTY with a password.

– Franck Dernoncourt – 2016-01-01T17:55:23.443

1Its best to use kitty it does everything whatever we need.It store password and not needed to enter it again – None – 2012-02-03T18:36:43.750

Answers

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.

AJ.

Posted 2010-01-31T16:09:21.757

Reputation: 3 491

10

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

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

kev

Posted 2010-01-31T16:09:21.757

Reputation: 9 972

9

You can't, it's by design.

See Putty wish remember-passwords

Pekka

Posted 2010-01-31T16:09:21.757

Reputation: 2 239

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.

tur1ng

Posted 2010-01-31T16:09:21.757

Reputation:

if someone gains access to your machine while you're away you're already doing something wrong – xorinzor – 2015-06-30T07:28:20.520

5"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 – 2013-09-25T20:26:00.437

3

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

madh

Posted 2010-01-31T16:09:21.757

Reputation: 253

1It saves them encryottled, but since kitty can decrypt them, anyone can. – Daniel – 2018-06-01T12:47:01.010

Indeed Kitty saves the passwords. Does it saves them encryoted? – john – 2012-03-08T06:36:04.110

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.

Dentrasi

Posted 2010-01-31T16:09:21.757

Reputation: 10 115

Does it saves the passwords encrypted? – john – 2012-03-08T06:36:31.253

1

mRemoteNG is a fork of mRemote and it is actively maintained, contrary to mRemote which seems that development stoped at 2008 http://www.mremoteng.org/

– john – 2012-03-08T06:37:15.013

1

I use .bat files like

putty root@66.66.66.66 -pw password

None

Posted 2010-01-31T16:09:21.757

Reputation:

0

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

Om Nom Nom

Posted 2010-01-31T16:09:21.757

Reputation: 1 285

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.

Natalie Adams

Posted 2010-01-31T16:09:21.757

Reputation: 2 071

0

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

danwms

Posted 2010-01-31T16:09:21.757

Reputation: 1