Host keys
This guide explains how nocturn decides which server it talks to, how to check a host key before you trust it, and how to replace one when a server is reinstalled.
nocturn trusts a host key only when a person allowed it. A host with a trusted key must present exactly that key. A host nobody trusted yet is asked about once, with a connection that ends before anything is logged in. The trusted keys are kept per workspace in ssh-hosts.json.
Trust a new host
The first command to a host brings the question Trust the SSH host key of <host>?, with the Host, the Key type and the Fingerprint:
On the server, print the fingerprint of the key the sheet names, for example:
shssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubCompare it with the sheet's. If it matches, hold Hold to allow; if not, tap Deny.
The sheet has no Remember for this question: a host key is trusted for good once allowed, and asked about again only after you forget it. Only a holder that may use ssh_exec is ever asked.
See what is trusted
In the app, Extensions › SSH lists each host under Hosts with its user, key, fingerprint and when it was trusted. From the terminal:
nocturn ssh hostsHOST TYPE FINGERPRINT ADDED BY
web.home.example ssh-ed25519 SHA256:… 2026-11-30 21:40:12 chatReplace a changed key
When a server presents another key than the trusted one, the command is refused:
… Refused: this may be someone in between. The owner must remove the trusted key of web.home.example (Extensions › SSH in the app, or nocturn ssh forget) before a new one can be approvedIf you know why the key changed (the server was reinstalled), forget the old key:
In the app: Extensions › SSH, tap Remove on the host's row.
From the terminal:
shnocturn ssh forget web.home.example
The next command to the host asks about its new key. A host with a port other than 22 is named with it: nas.home.example:2222.