Allow Putty store passwords

by Kuf   Last Updated November 09, 2018 00:01 AM

Is there any way to allow Putty to store passwords? Please note that safety is not an issue (private LAN), so the easiest solution would be to save the password in the Putty session (instead of using keys or the -pw option).

I know there is a way to do so, but I don't remember how to do so, and all the posts I've found showed how to do it using the -pw flag or with keys.



Answers 7


I don't think you can do this with PuTTY without as you note creating a shortcut and using the -pw option. There is a fork of PuTTY called KiTTY that will allow you to configure a password.

Iain
Iain
August 06, 2012 07:55 AM

No.

Might I refer you to PuTTY's own FAQ for this?

http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-password-remember

The documentation does specify a -pw option (just for SSH): http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter3.html#using-cmdline

However, as the FAQ suggests, you should look into setting up public-key auth - it's quite simple, safe and elegant.

Gnarfoz
Gnarfoz
August 06, 2012 07:58 AM

Not directly but as a workaround for this I always start with WinSCP and start PuTTY from there, with WinSCP passing the credentials through. It's only two extra clicks of the mouse.

John Gardeniers
John Gardeniers
August 06, 2012 08:14 AM

I use mRemoteNG to wrap Putty connections, it saves the passwords plus combines all sessions into a nicely manageable UI.

Ben F
Ben F
August 06, 2012 09:47 AM

If you want to be able to log on automatically without using passwords, why not logon using a private key instead?

You can use puttygen to generate the keys, as described here

Once you have your key files in the right places, you will not be prompted for a password.

See also http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter8.html#pubkey

Dominic Cronin
Dominic Cronin
August 06, 2012 11:20 AM

Putty connection manager can store usernames and passwords. It also enables tabbed putty sessions.

Giri
Giri
August 11, 2012 05:22 AM

If what you really want to do is just log on with SSH automatically, you can try Pageant. In Putty settings -> Connection -> SSH -> Auth, there is an option "Attempt authentication using Pageant". So what you can do is just start Pageant, add your SSH private key into it and you are good to go.

imgen
imgen
June 02, 2016 08:21 AM

Related Questions


How come I can't enter my password in PuTTY?

Updated May 07, 2018 00:01 AM

Pgpass gives error code

Updated October 02, 2015 15:00 PM

Access denied after UNIX password change

Updated February 26, 2017 19:01 PM

Auto-login with Putty.exe

Updated November 25, 2015 09:00 AM