Where Does Your SFTP Client Store Your Password?
Your SFTP client knows your server passwords. Where do they go?
If you save a connection in an SFTP client, the application has to keep that secret somewhere. Sometimes that means a protected system store. Sometimes it means a local config file. Sometimes it means a format that looks obscure but is easy to reverse.
That matters because SFTP clients are often used on developer laptops, build machines, shared admin workstations, and support boxes. In those environments, credential storage is not an academic detail. It is the difference between a password being guarded by the operating system and a password being readable from a plain file.
I wanted a simple answer to a simple question: when you save a login in an SFTP client, where does the password end up on disk?
The test setup
For this audit, I compared FileZilla and openSFTP directly, then checked the vendor documentation for Cyberduck and WinSCP for context.
The test pattern was straightforward:
- Create a saved connection.
- Inspect the on-disk config files.
- Check whether the password is stored in plain text, reversible encoding, or a protected system store.
- Verify whether the application supports a stronger alternative such as SSH keys or a master password.
For openSFTP I also read the source code to see how saved connections are written to disk.
FileZilla: passwords in sitemanager.xml
On Linux, FileZilla stores site entries in ~/.config/filezilla/sitemanager.xml. Recent connections can also appear in recentservers.xml.
A typical saved site entry looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.66.5" platform="linux">
<Servers>
<Server>
<Host>192.168.1.100</Host>
<Port>22</Port>
<Protocol>1</Protocol>
<Type>0</Type>
<User>deploy</User>
<Pass encoding="base64">c3VwZXJzZWNyZXQxMjM=</Pass>
<Logontype>1</Logontype>
<Name>Production Server</Name>
</Server>
</Servers>
</FileZilla3>
That Pass value is not encrypted. It is base64.
Decoded, the test value becomes:
supersecret123
That is the key thing to understand. Base64 is an encoding, not protection. Anyone who can read the file can decode it in seconds.
The same pattern appears in recentservers.xml for recently used servers. If the client stores a recent login with credentials, the password is again represented in reversible form.
What that means in practice
Base64 storage is not the same as keeping a password in clear text, but it is also not real security.
If an attacker or a local process can read the config directory, the secret is effectively exposed. That includes:
- malware running as the same user
- backup tools that copy home directories
- support scripts that collect config files
- accidental uploads of dotfiles to issue trackers or archives
- forensic access after a machine is compromised
So the honest summary is this:
- FileZilla does store saved passwords on disk
- the default format is reversible
- without the optional master password, it is not protected by strong encryption
FileZilla master password: real feature, not default behavior
FileZilla does have a master password feature. That matters, because it means the product is not simply “insecure by design.”
The issue is default behavior.
A master password can protect stored credentials with stronger cryptography, but it has to be enabled by the user. In other words, FileZilla can be configured to protect saved passwords, but many installations never turn that on.
That distinction is important for a security audit:
- the capability exists
- the safer mode is available
- the default path is still weak
If you use FileZilla and save passwords, the safest move is to enable the master password or, better yet, avoid password storage entirely and use SSH keys.
openSFTP: passwords in plain JSON
openSFTP is my own client, and here it does worst.
Saved connections live in connections.json in the eurosftp folder of the config directory. On Linux that is ~/.config/eurosftp/connections.json, on macOS ~/Library/Application Support/eurosftp/connections.json, on Windows %APPDATA%\eurosftp\connections.json.
After a successful password login, openSFTP saves the connection automatically, and the password goes with it:
[
{
"name": "deploy@192.168.1.100",
"host": "192.168.1.100",
"port": 22,
"username": "deploy",
"auth": {
"Password": "supersecret123"
},
"favorite": false
}
]
That is plain text. Not even base64. The same applies to a jump host password. There is no OS keychain integration and no master password, and the app does not restrict the file's permissions itself.
The other login methods are clean:
- with an SSH key, the file only holds the path to the key
- with the SSH agent, the file holds no secret at all
So if you use openSFTP, use keys or the agent. If you do log in with a password, treat connections.json as a secret file.
Cyberduck: system keychain backed storage
Cyberduck keeps bookmarks as files, but it does not write passwords into them. When you let it save a password, it goes to the operating system’s secret store.
On macOS, that means the Keychain. On Windows, it is the Windows Credential Manager.
The practical security advantage is simple:
- passwords are not usually kept in a human-readable app config file
- the OS handles access control and encryption at rest
- the client reads secrets when needed instead of serializing them into its own config format
Cyberduck is still a client that can remember credentials, so it is not “password free.” But its storage model is much closer to what you want from a desktop tool in 2026.
WinSCP: encrypted with a master password, but not always protected
WinSCP is the most nuanced of the group.
Sessions live in the Windows registry under HKCU\SOFTWARE\Martin Prikryl\WinSCP 2, or in WinSCP.ini for the portable version. By default, WinSCP does not save the password at all. You have to ask for it explicitly when you save a session, and the documentation calls this the least recommended way to handle passwords.
Its documentation also says that WinSCP can protect stored passwords with a strong AES cipher when a master password is set. Without a master password, stored passwords can be easily decrypted, for example by malware on the computer.
That is a very direct admission, and it is useful because it separates capability from configuration.
So the comparison looks like this:
- by default, WinSCP stores no password
- a saved password without a master password is easy to recover
- with a master password, saved passwords are encrypted with AES
SSH keys are still the better answer
Across all of these clients, the cleanest answer is not “choose the best password vault.” The cleanest answer is to stop storing reusable passwords where possible.
Use SSH keys instead.
Why keys win:
- they are not the same as a reusable login password
- they can be protected by a local passphrase
- the private key can live in a file or hardware-backed store
- revocation is simpler and scope is narrower
- many clients support agent-based workflows that reduce secret exposure
openSFTP supports SSH keys (Ed25519, RSA, ECDSA) and the SSH agent alongside password login. Given how it stores passwords, the safer mode is the one to use.
Permissions still matter
Even when a client stores data responsibly, file permissions are part of the picture.
A few defaults are worth checking:
~/.config/filezilla/sitemanager.xml~/.config/filezilla/recentservers.xml~/.config/eurosftp/connections.json
If those files are readable by the user, then any process running as that user can usually read them too. That is normal Unix behavior, not a bug.
The question is what the file contains.
If the file contains a plain or reversible password, your exposure is much higher. If the file contains only non-sensitive metadata, the risk is much lower. If the secret lives in the system keychain, exposure depends on the OS security model instead of a custom app format.
That is why the storage model matters more than the directory name.
Quick comparison
| Client | Where passwords end up | Default protection | Notes |
|---|---|---|---|
| FileZilla | sitemanager.xml, also recentservers.xml | Weak | Passwords are stored as reversible base64 unless a master password is used |
| openSFTP | connections.json in the eurosftp config folder | None | Plain text, saved automatically after a password login. Key and agent logins store no secret |
| Cyberduck | macOS Keychain or Windows Credential Manager | Stronger | Uses OS credential storage instead of a custom visible password file |
| WinSCP | Registry or WinSCP.ini, only if you choose to save | Not saved by default | Saved passwords are easy to recover unless a master password is set, then AES |
What to do if you use FileZilla
If your team uses FileZilla, do not treat the default storage model as safe just because it is not plain text.
Recommended actions:
- Enable the master password.
- Prefer SSH keys over passwords.
- Do not keep long-lived credentials in shared backups.
- Review
sitemanager.xmlandrecentservers.xmlon developer machines. - If a laptop is lost or compromised, assume saved credentials may be exposed unless they were protected.
The base64 detail is the key takeaway for readers. It is easy to miss because the file does not look like a plaintext password list at first glance. But reversible storage is still reversible storage.
What to do if you build or choose an SFTP client
If you are evaluating SFTP software for a team, ask these questions before you ship it:
- Does the client store passwords in a plain file?
- Does it rely on base64 or another reversible encoding?
- Does it support the OS keychain or equivalent?
- Is the safer mode enabled by default?
- Can users choose SSH keys without friction?
- Are credentials split from ordinary config data?
Those questions are more important than a feature checklist.
A polished UI does not make weak secret handling safe. A modern app can still leak passwords if it writes them into a file that every backup script can copy.
FAQ
Is base64 encryption?
No. Base64 is reversible encoding. Anyone can decode it.
Does FileZilla have a master password?
Yes. FileZilla supports an optional master password, but it is not enabled by default.
Does openSFTP store passwords in its JSON config?
Yes. After a successful password login, openSFTP saves the password in plain text in connections.json. With an SSH key, the file only holds the key path. With the SSH agent, it holds no secret.
Is the system keychain always safe?
No storage layer is perfect. But the system keychain is generally a better place for secrets than a custom file in a user config directory.
Are SSH keys always better than passwords?
For SFTP and SSH use cases, yes in practice. They reduce password reuse and make storage and rotation easier to manage.
Bottom line
If you save passwords in your SFTP client, check the storage model before you trust it.
FileZilla keeps saved credentials in sitemanager.xml and recentservers.xml using reversible base64 unless you enable its optional master password. openSFTP writes passwords in plain text into connections.json, so use it with SSH keys or the agent. Cyberduck leans on the system keychain. WinSCP saves passwords only when you ask it to, and encrypts them only if you set a master password.
So the answer to the title question is not the same for every client.
Some store passwords in a readable config path, in plain text or with reversible encoding. Some store them in the operating system’s secret store. Some can do both, depending on configuration.
If you want the short recommendation, it is this:
- prefer SSH keys
- prefer keychain-backed storage over app-owned secret files
- do not assume “not plain text” means “secure”
- enable stronger protection where the client offers it
For a desktop SFTP client, secret handling should be boring. If you have to inspect XML just to understand where your password lives, that is already a sign to look harder.
FAQ
Does FileZilla encrypt saved passwords?
No. FileZilla stores passwords as base64 in sitemanager.xml by default. An optional master password exists since version 3.26.0 but is off by default.
Where does openSFTP store passwords?
In plain text, in the file connections.json in its config folder (on Linux ~/.config/eurosftp/). After a successful password login it saves the connection, password included. There is no OS keychain integration. With SSH keys or the SSH agent, no secret is stored.
Should I use SSH keys instead of passwords?
Yes. With SSH keys there is no reusable login password for the client to store.