@sdillen/pi-ssh0.2.3
pi extension: run all tools on an SSH host, with sudo and YubiKey/ED25519-SK support via ControlMaster
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@sdillen/pi-ssh
A pi extension that runs all tools on an SSH host.
- read/write/edit/bash and
!commands execute remotely. - A dedicated
sudotool with a masked password dialog. The password is never written to the LLM context or the session file. - One-time interactive YubiKey / ED25519-SK authentication, then all calls reuse a ControlMaster socket.
Install
pi install npm:@sdillen/pi-ssh
Try it for a single run:
pi -e npm:@sdillen/pi-ssh --ssh user@host[:/remote/path]
Requirements: bash on the remote host and a reachable SSH key.
Notes
- sudo is its own tool.
sudo ...in the bash tool is rejected remotely. The sudo tool runs the command assudo bash -c, so pipes,&&, and redirects all run as root. - Password: remembered for 4 minutes, then asked again. A wrong password triggers one retry.
- Authentication: after the first interactive authentication, the ControlMaster socket (
~/.ssh/controlmaster/...) is reused. Its lifetime after the last connection isSSH_CONTROL_PERSISTseconds (default 43200 = 12 h). If the master dies mid-session, pi re-authenticates once automatically.
Full architecture notes and the development setup are in the repository README.