Skip to main content

Module ssh

Module ssh 

Source

Structs§

DevicePin
A device’s pins: its alias and the host key its signed row carries.
KeyscanLine
SshTransport
Runs the peer’s sb over ssh, trusting only host keys pinned in this machine’s known_hosts.

Functions§

append_known_host
compose_known_host_entry
device_alias
known_host_name
How known_hosts names host reached on port.
known_hosts_path
known_hosts_path_in
parse_keyscan_output
pin_alias
Pins host_keys (type base64, a trailing comment is dropped) under alias, skipping keys already pinned there; a new key replaces the one of its type pinned before, since a host has one key per type. Returns whether it wrote.
pin_host_keys
Pins a paired device’s host keys under each name it may be dialled by, so sync to it needs no sb sync trust. Names that are not a plain host are skipped. Returns the entries written or already present.
read_host_keys
This machine’s sshd host keys from dir (/etc/ssh on a real host) as type base64 lines, ed25519 first. Unreadable files are skipped.
ssh_args
unpin_devices
Removes the pins of cut devices: every line under their aliases, and every line under any other name holding one of their keys (the host names pairing pinned), unless a kept device holds that key too.
untrusted_host_hint