Connecting¶
Muxus dials the way ssh does. This page describes what happens between selecting a host
and reaching a prompt.
Resolution¶
Every connection starts by resolving the host through the OpenSSH configuration: a
sequential, first-obtained-wins lookup across every matching Host pattern, wildcards and
negations included, and every Included file, accumulating IdentityFile,
CertificateFile and the *Forward directives. Each hop resolves independently, so a
jump host uses its own key and its own user.
Match blocks are not applied. Their conditions depend on runtime state Muxus does not
reproduce, so the options inside them are skipped.
Host keys¶
Before authentication, the server's key is checked against ~/.ssh/known_hosts and the
read-only /etc/ssh/ssh_known_hosts, hashed entries included.
- Unknown host: the fingerprint is shown for confirmation. Accepting appends the key to
~/.ssh/known_hosts, sosshon the command line trusts it as well. - Changed key: a warning is shown. Accepting performs the
ssh-keygen -R-style replacement of the old entry.
A changed key is not routine
If the host was not just rebuilt, determine why the key changed before accepting.
Authentication order¶
Within one connection Muxus follows the OpenSSH order and stops at the first method that succeeds:
- Agent: every identity in
SSH_AUTH_SOCK. - Certificates: a
CertificateFiletogether with its matchingIdentityFile. - Keys: the
IdentityFiles in the block, or the default~/.ssh/id_*set. Passphrase-protected keys issue a prompt.IdentitiesOnly yesis honoured. - Keyboard-interactive: 2FA codes, challenge/response.
- Password, with retries.
Passwords and passphrases are transient. They exist only for the duration of the authentication attempt, and the persistence layer refuses to store them. See the security model.
Jump chains and ProxyCommand¶
ProxyJump chains, including nested and comma-separated ones, are dialled hop by hop,
each with its own resolution, host-key check and authentication. Cycles are detected and
rejected.
ProxyCommand is supported as a transport. Muxus runs the command and speaks SSH over its
stdin/stdout, which supports tools such as cloudflared access ssh and corporate
ProxyCommand wrappers.
Forwards declared on the block (LocalForward, RemoteForward, DynamicForward) start
with the session, and ForwardAgent applies when an agent is present.
Connection leases¶
Connections are leased. Splitting a pane, opening a second tab on the same host, the file browser, the remote editor and an ad-hoc forward all use the same SSH transport:
- no second login and no second 2FA prompt;
- closing one tab does not affect the others;
- a tunnel holds its own lease, so closing every terminal leaves it running.
Connection loss¶
Muxus adds no probe traffic of its own. It observes the keepalives the configuration already requests:
| Tab icon | Meaning |
|---|---|
| amber | Existing keepalives are unanswered |
| red | SSH declared the transport lost; the reason is printed in the terminal |
Reconnection is never automatic. Press any key in the tab, or use Reconnect from the tab menu. SSH tabs additionally offer Reconnect + tmux and Reconnect + screen, which dial a fresh transport and then reattach the existing multiplexer session.
A restored workspace reconnects selected sessions, or all of them, from its dialog.