Help topics

SFTP and SSH keys

Sign in to SFTP servers with a password, your SSH keys, ssh-agent or 1Password, use ~/.ssh/config aliases and jump hosts, and answer two-factor prompts.

SFTP (SSH File Transfer) is the most common way to reach a web host or a Linux server. It encrypts everything, including your password.

Ways to sign in#

Ferry tries the options in this order, like the ssh command does:

  1. The key you chose for this server (Advanced › SSH key), or the keys named in your ~/.ssh/config.
  2. Your ssh-agent. This includes agents that keep keys in a secure vault, such as the 1Password SSH agent, when you point IdentityAgent at them in ~/.ssh/config.
  3. The default keys in ~/.ssh (id_ed25519, id_rsa and so on).
  4. Your password, if you entered one.
  5. Password plus a verification code, for servers that ask for both (see two-factor authentication).

You don't have to set anything for this to work: leave the SSH key on automatic and Ferry uses whatever works for ssh in Terminal.

Keys with a passphrase#

If a key is protected with a passphrase, Ferry asks for it when you connect. You only need to enter it once if you let Ferry remember it in your Keychain.

Choose a specific key#

Open the server, go to Advanced and choose the private key file. The file picker opens in ~/.ssh, a folder macOS hides because its name starts with a dot.

Use your ~/.ssh/config#

If you already have hosts in ~/.ssh/config, type the alias as the server address. Ferry reads the real host name, user, port and keys from the file, so you only maintain them in one place. The server editor shows Keys and options come from ~/.ssh/config.

To add all of them at once, choose File › Import Connections… › SSH config. See Import and export servers.

Ferry understands these options from the file:

OptionWhat Ferry does
HostNameThe real address to connect to.
User, PortThe login and port.
IdentityFileTries those keys first.
IdentityAgentUses that agent instead of the system one (for example 1Password).
ProxyJumpConnects through the jump hosts, in order.

Jump hosts (ProxyJump)#

If the alias has a ProxyJump, Ferry connects to each jump host first and then reaches the server through them. Each hop is a full SSH connection and uses its own entry from your config, including its own keys.

Two-factor authentication#

When a server asks for a verification code (an authenticator app, Duo, a security key and so on), Ferry shows the question in a sheet on top of the window. Type the code and press Return. Ferry never stores the codes.

If the server rejects the code, Ferry tells you the code was wrong, not the password, so you know what to retry.

The first connection: trusting the server#

The first time you connect, Ferry shows the server's fingerprint and asks if you trust it. Compare it with the one your hosting provider shows, then click Trust and Connect. Ferry remembers it and warns you if it ever changes. See Security and privacy.

Terminal and server status#

SFTP servers also get a terminal, live logs and server status. See Terminal, logs and server status.