Connecting and logging in
How etrans logs in
Choose the way in the server's form, under Log in with:
- Automatic (the default) tries the keys
sshtries, the named ones first, so the right key comes before the server stops listening (most allow six tries):- the
IdentityFilekeys~/.ssh/confignames for the host — from the SSH agent when it holds them, so no passphrase is asked for, otherwise from the file, - the other keys in the agent, at most five, unless
IdentitiesOnly yessays only the named ones; the agent is the oneIdentityAgentnames for the host, or else the usual one,SSH_AUTH_SOCK, ~/.ssh/id_ed25519,id_ecdsaandid_rsa, when they exist and were not offered from the agent already (withIdentitiesOnly yes, only when the config names no key),- the password: the one saved for the server, or one you are asked for.
- the
- Password logs in with the password only.
- Key File uses the one key you choose. Choose… lists the private keys
in
~/.sshwith their type and comment; Other… opens the file panel for a key anywhere else. - SSH Agent uses only the keys loaded in the agent, in the same order,
and as
IdentitiesOnlyallows.
A password is tried once, so a wrong one counts once against tools like fail2ban, not twice.
Passwords and passphrases
When a password is needed and none is saved, etrans asks for it. Remember in Keychain (on by default) saves it in the login Keychain, under the server. Otherwise it is kept in memory for that window only, so getting the connection back after a drop does not ask again. See Reconnecting.
An encrypted key asks for its passphrase the same way. With Automatic, a key whose passphrase you decline is skipped and the next way in is tried.
One-time codes and other questions
Servers that log in with keyboard-interactive authentication (common with two-factor setups and PAM) can ask anything: a code from an app, a token, a yes or no. etrans shows each question as the server words it. A question that asks for a password gets the password, so you are not asked for it twice.
~/.ssh/config
etrans reads ~/.ssh/config for the host you connect to, the way ssh does,
and takes HostName, User, Port, IdentityFile, IdentityAgent,
IdentitiesOnly, ProxyJump and the LocalForward, RemoteForward and DynamicForward
lines. For each, the first value found wins. What the server's form says wins
over the config, except a port left at 22.
So a server saved with just an alias, say web, connects wherever
Host web points.
Include is followed as ssh follows it: a relative path is from ~/.ssh,
* and ? match in any part of the path, and an Include inside a Host
applies only to that host. What OrbStack, Colima and Lima add there, and a
config.d folder of your own, are read too.
1Password, Secretive and other agents
An agent of its own is found by the IdentityAgent line it asks you to add,
for example for 1Password:
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
IdentityAgent takes a path (~ and %d are your home folder), $NAME for
the path an environment variable holds, SSH_AUTH_SOCK for the usual agent,
and none for no agent.
When it does not work
The message says what went wrong, for example:
- The password was not accepted.
- Could not log in as deploy. The server accepts: publickey. The server wants a key and none of the ones tried were accepted.
- web.example.com did not answer within 15 seconds. Nothing answered at the address.
See Troubleshooting for more.