Help › Tunnels, sign-in and passwords
Trust an SSH host's key
What Querlyn asks the first time you connect to an SSH host, where trusted keys are kept, and what to do when a host's key has changed.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Every SSH host proves who it is with a key. Querlyn checks that key each time it connects through a host, and never skips the check.
The first time: an unknown host
When you connect through an SSH host Querlyn has not seen, it stops and asks Trust the SSH host …? and shows the kind of key and its SHA256 fingerprint.
Compare the fingerprint with the one the server's administrator gave you.
Choose:
Button What it does Trust and Save Connects, and remembers the key. You are not asked again for this host. Trust Once Connects, and remembers the key until you quit Querlyn. Cancel Does not connect.
↩ on macOS or Enter on Windows and Linux does not answer this question; choose a button.
You are not asked about hosts you already trust in OpenSSH. Querlyn reads
your ~/.ssh/known_hosts, the system's /etc/ssh/ssh_known_hosts, and a
UserKnownHostsFile named in an SSH config you imported the route from.
Hashed entries, certificate authorities (@cert-authority) and revoked
keys (@revoked) are understood.
Where trusted keys are kept
Trust and Save writes the key to a known-hosts file of Querlyn's own,
in Querlyn's data folder. Querlyn never changes your ~/.ssh/known_hosts.
A host whose name has characters a known-hosts file reads as patterns or
separators (*, ?, !, a comma or a space) is never saved: its key is
trusted until you quit Querlyn, as with Trust Once, so it cannot
vouch for other hosts.
See Where Querlyn keeps its files.
When a host's key has changed
If a host presents a different key from the one that was trusted, Querlyn refuses to connect and says so:
WARNING: the SSH host key of bastion.example.com has changed. Querlyn refused to connect.
There is no button that connects anyway. A changed key can mean the server was reinstalled. It can also mean that something between you and the server is answering in its place. A host that now offers another kind of key than the one recorded counts as changed too.
Warning: Ask the server's administrator before you go on. If the key should not have changed, do not connect.
Once you know the new key is the server's:
If the old key was saved by Querlyn, open the connection with Edit Connection…. The dialog shows a red Remove Saved SSH Host Key… button (). Choose it, read the question, and choose Remove Saved Key. Then connect again: Querlyn asks you to trust the new key as for an unknown host.
If the old key is in an OpenSSH file, Querlyn does not edit that file. The error names the command that removes the entry, which you run in a terminal:
ssh-keygen -R bastion.example.com
A key marked @revoked in a known-hosts file is refused in the same way.
Help for Querlyn 0.1.0. All help topics