sshpm allows you to use a single set of SSH connection profiles across multiple SSH-related programs.
npm i -g sshpm
pnpm i -g sshpm
yarn global add sshpm
Download the latest release, extract it and add the
bin directory to your PATH.
git clone https://github.com/TheLastZombie/sshpm cd sshpm npm i
To run sshpm without compiling, use
npm start -- instead of
npm start -- help).
To compile sshpm, run the distribution script:
npm run dist
After that, you'll (hopefully) find what you need inside the
If you use Scoop but don't want to install Node.js, you can also use my bucket to install sshpm:
scoop bucket add tlz https://github.com/TheLastZombie/scoop-bucket scoop install sshpm
If you have NPM installed, you can also prepend all commands with
npx sshpm help).
Keep in mind that this will use a temporary instead of a permanent installation, significantly increasing execution time, since NPX will download sshpm every time a command is run.
To show general help regarding sshpm, run
To show help for a specific command, run
sshpm help [COMMAND] or
sshpm [COMMAND] --help.
The commands themselves are pretty self-explanatory, and a typical workflow might look like this:
sshpm init sshpm login "Server 1" -h example.com -o 22 -u username -p password sshpm login "Server 2" -h example.com -o 22 -u username -k id_rsa sshpm test "Server 1" sshpm list sshpm apply
The following programs are currently supported: