Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Recover saved password

@martin: Thank you!!!

Re: I've looked everywhere...

One way is to configure this command as PuTTY path in Preferences:
cmd.exe /k echo

And check the Remember session password and pass it to PuTTY.

Now connect to your session and use the Commands > Open in PuTTY.
You will get your password on console like:
-pw <your password> -load ...

Re: I've looked everywhere...

Unfortunately, I work for the Government and I do not have the ability to upgrade my software at this time. Is there any way to retrieve a stored password with version 5.1.7? I would be grateful if you could provide me with some relief as I have 3 stored sessions to servers and I cannot access except through one PC that has WinSCP on it and I need to get off of that machine.

Re: I've looked everywhere...

@ToddRasmussen Well, you are using 3 years old version of WinSCP that lacks the function. You need to upgrade.

I've looked everywhere...

I have been through this entire thread. I do not wish to use a third party password retriever for a couple of solid reasons. Martin, I hope you answer my post.

I have tried using the session logs, but they do not show my password. It shows my username and shows that it is using a saved password, but it doesn't show what it is...
! 2016-08-03 09:14:58.589 Using username "rrasmta".
. 2016-08-03 09:14:58.606 Prompt (7, SSH password, , &Password: )
. 2016-08-03 09:14:58.607 Using stored password.
. 2016-08-03 09:14:58.653 Sent password
. 2016-08-03 09:14:58.669 Access granted

So then I tried to use the Generate Session URL/Code function method you outline, but I can see no option under Session for this, I also see no Manage menu item at all. I am running v5.1.7 (Build 3446)

I welcome an email response if necessary to

Thank you in advance,

Todd Rasmussen
State of Hawaii

Re: Recover saved password

Just found an easy way.. login to WinSCP session, Click Session>Generate Url, Check the password box..voila.. you can see the password in generated URL.,.. The password may be url encoded, which you can decode back...
mr anon

Martin, you have the patience of a saint! ;)

Re: Recover saved password

In the latest release, passwords are logged, when logging of sensitive information is enabled:

You can also abuse a Generate URL function to retrieve a saved password:

Note that special symbols in the password may get URL-encoded. Decryption key is here:

Both approaches are covered in FAQ:
Can I recover password stored in WinSCP session?

@Guest: There's no documentation for this. Just the C++ code.

Thank you for your fast answer. Is there any documentation or information on how this is done so I could write such a script myself? I tried to understand the sources but sadly I have no idea of C/C++.

I would love to continue using WinSCP on my windows PC and be able to use the same password source on my native Linux terminal since using PuTTY via Wine under Linux is a bit silly.

@samwan: I'm not aware of any such tool. WinSCP uses a proprietary format of the encrypted password. So the tool would have to be built specifically for WinSCP.

I am using WinSCP on my Windows box and I am storing all my passwords protected by a master password in my winscp.ini.

Is there any command line program / way / whatever to read this file on my Linux PC?
Basic functionality should just be to have a way to decrypt the passwords, I can write the rest script by myself but my C/C++ knowledge is just not enough to understand the way the encryption is working.

How to decrypt password stored in WinSCP sessions

Sorry to revive an old thread. But thought that this will help someone someday.

I wrote a small utility to get the WinSCP password in clear text. It is open source and is available here:

Re: Lost Master Password

@n10s: No. That's the very point of master password.

Lost Master Password

Unable to access some sites due to request for master password. When i enter the password that i recall using it doesn't work. Any reset possible?

Need to recover WinSCP 4.2.5 password

I need to recover a stored session password which WinSCP has – I have tried some of the tools listed in this thread as well as some found by web searching and they did not work – I am on Windows XP. I tried rekenwonder password revealer – didn't work.
Neither did's tool. reaktiv software (spelling?) offered a download containing a Trojan horse.

Can someone help with this?


Re: Recover saved password

@IC3: Of course not.

Re: Recover saved password

Is it possible to recover a password and/or Master password if I've managed to lose both?
Jonathan Harriot

Rekenwonder's Revealer wokrs wonderfully

Thanks for the recommendation, jsut recovered some stored passwords from WinSCP after moving from XP to Vista.

Re: Windows Registry Recover Password

I found that Password Revealer (<invalid hyperlink removed by admin>) or Password Unmask (<invalid hyperlink removed by admin>) or similar programs will reveal the password behind the asterisks.

Recover saved password

I have forgotten a password for a server but I can still connect with WinSCP, which has the password saved. The documentation says:
Saved passwords are stored in a manner that they can easily be recovered.


How do I do this? I have looked everywhere with no success.

Thank you very much for your help.

- Kit