Skip to content

Overview

SSH ​

SSH lets the assistant run commands on your servers with a key it never sees, allowed per host and per command.

The SSH page: one trusted host, nas.home.example:2222, with its user, key and fingerprint, the key vault/nas-admin, and Add an SSH key.The SSH page: one trusted host, nas.home.example:2222, with its user, key and fingerprint, the key vault/nas-admin, and Add an SSH key.

AskIs nginx running on the web server?

The sheet asks Run a command on web.home.example as admin? with Command systemctl status nginx. Allowed, the model gets the exit code and the output.

AskShow the running containers on the NAS.

The model runs docker ps -a. Choose Always and Wider, and admin@nas.home.example docker ps * runs without asking from then on, in every chat.

AskDelete everything in /tmp on the NAS.

rm -rf /tmp/* is refused as written: no shell reads the command. The model has to ask for sh -c 'rm -rf /tmp/*', which you see whole, and which is never widened to other commands.

What it gives you ​

  • Keys the model never sees. A command names its key by alias (vault/nas-admin); the login user is the key's, not the model's choice.
  • Allowed per command. The permission target is user, host and command: admin@nas.home.example docker ps.
  • No shell in between. The command runs with exactly the words written. ;, |, &, >, <, $, `, *, ? and ~ are refused unquoted; a pipeline must be an explicit sh -c '…'.
  • Host keys trusted once, on purpose. The first command to a host asks you to trust its key. A changed key is refused until you remove the old one.
  • Bounded. A command runs one minute by default, ten at most, and returns 64 KiB of output.
  • Never from voice. A spoken session has no SSH, and an agent has it only once you accept.

How it works ​

Explore SSH ​

nocturn is open source. Example hosts and people on these pages are made up.