Install
Install with PiG
pig install npm:@sdillen/pi-sshInstall with Pi
pi install npm:@sdillen/pi-sshReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./dist/index.js"
]
}README
Written by the package's publisher, shown as published in version 0.3.0 (README.md). PiG does not review it.
@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 authentication in the terminal (for example YubiKey / ED25519-SK PIN + touch, or a passphrase), 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.