ssh-switch
Version:
A lightweight CLI tool to manage and switch between multiple SSH configurations easily.
67 lines (47 loc) • 1.2 kB
Markdown
[](https://www.npmjs.org/package/ssh-switch)
[](https://npm-stat.com/charts.html?package=ssh-switch)
A lightweight CLI tool to manage and switch between multiple SSH configurations easily.
```shell
npm i -D ssh-switch
npm i -g ssh-switch
```
```shell
sshs
sshs -h
sshs add
sshs list
sshs now
sshs use <configName>
sshs remove <configName>
```
```shell
$ sshs add
? Enter a name for this SSH config: work
? Host: github.com
? Path to SSH private key file: ~/.ssh/id_rsa_work
$ sshs add
? Enter a name for this SSH config: personal
? Host: github.com
? Path to SSH private key file: ~/.ssh/id_rsa_personal
$ sshs use work
$ sshs now
work is now in use
```
MIT