Skip to main content

Module ssh_identity

Module ssh_identity 

Source

Structs§

EphemeralIdentity
This device’s ssh private key in a 0600 file, for one ssh transport to pass to ssh -i, removed with its directory on drop. Each identity gets a fresh 0700 directory with a random name under $XDG_RUNTIME_DIR or /dev/shm (both RAM) when one exists, else the temp dir, which is disk on macOS; a directory another user made first is never used.

Functions§

public_line
sweep_ephemeral_identities
Removes the key directories a killed daemon on data_dir left; returns how many. Only real directories owned by data_dir’s owner are touched.
write_identity_file
Writes key as an unencrypted OpenSSH private key, byte for byte the same for the same key and comment. Returns false when the file already held it.