/sshconnect

A command-line tool to simplify SSH'ing into different servers

Primary LanguageGoMIT LicenseMIT

sshconnect

Do you have multiple Linux servers and miss the option to easily select the server you want to SSH into? Would you rather avoid adding server aliases to your SSH config file?

Say hello to sshconnect!

It works by reading ~/.sshconnect.json file containing a list of your servers. Upon running you're presented to that list and you're allowed to type your choice. sshconnect will execute ssh and replace itself with the newly created ssh process.

To get started just download a pre-compiled binary (or compile it yourself) and put it in your /usr/local/bin path with execute permissions:

# For MacOS:
wget https://github.com/fishnux/sshconnect/releases/download/v0.1.1/sshconnect_osx -O /usr/local/bin/sshconnect && chmod +x /usr/local/bin/sshconnect
# Other platforms: https://github.com/fishnux/sshconnect/releases
sshconnect

screenshot (sorry for the large screenshot)

You can also type certain commands during the server selection, such as "edit" (to edit sshconnect.json) and "add" (to interactively add a new server).