Turn it on
1
Install the SSH library
2
Pick a port
3
Authorize your key
4
Restart and connect
known_hosts entry stays valid.Settings
An environment variable wins over~/.mirage/config.toml, which wins over the default.
Bind a key to a profile
Themirage-profile option runs every login of that key under a profile. A key without it gets the workspace’s default.
~/.mirage/ssh/authorized_keys
Sessions
Each channel (onessh, sftp or scp run) gets a fresh session, closed when it ends, so a cd or export never leaks between them. The session’s profile and the mount modes apply as in any shell: a read-only mount refuses sftp put. Ctrl-C cancels the running line and sets $? to 130, a dropped connection cancels it too, and ssh host cmd exits with the line’s status.