sshboard

sshboard › Examples

Get the agent's help without letting it roam the server

Uses
The write fence (write_roots) · write_file · upload_file · the file panes
Finds
The agent can change the files you pointed it at — and nothing outside them
How it ends
The site is updated; every write is on the band, and nothing outside the fence was touched

Steps

  1. Draw the fence. In the connection settings for web-01 (made up), list one directory the agent may write to, for example /var/www/example. The list starts empty: until you add one, the agent writes nothing.
  2. Let it work inside. Ask the agent to fix the page. It reads, then writes inside that directory. Each write appears in the band and in the file pane beside you.
  3. Watch it hit the edge. If it tries to write anywhere else, it is refused and the refusal is on screen. Deleting, renaming, changing permissions, restarting services and installing packages do not exist for it at all.
  4. You are not fenced. You, the person, can still do anything in the file panes or your own terminal. The fence is for the agent only.

Two file panes, with where the agent may write shown at the top

Why this matters

Help without a free hand: you choose exactly where the agent may write, and you can see every byte it writes.