WinSCP stores SSH session passwords in encrypted format. If you have passwords saved in WinSCP sessions but forgot them, use this tool to decrypt and recover them.
CGO_ENABLED=0 GOOS=linux go build -o winscppasswd main.go
CGO_ENABLED=0 GOOS=windows go build -o winscppasswd.exe main.go
./winscppasswd ini [filepath]
- Open Registry Editor (
Win + R
, typeregedit
) - Navigate to
[HKEY_CURRENT_USER\Software\mehrdad\WinSCP\Sessions]
- Get hostname, username and encrypted password
- Run:
./winscppasswd <host> <username> <encrypted_password>
Written in Go to safely decrypt WinSCP passwords without relying on untrusted third-party tools.