ssh-helper is a cli tool to manage ssh access to your fleet of machines.
# Clone repo
git clone https://github.com/xgaia/ssh-helper.git
cd ssh-helper
# Install
pip install -e .
Get the help
sshh --help
Add some machines
sshh add pi -a [email protected] -p 2222 -g personal
sshh add skynet -a [email protected] -g work/prod
sshh add backup -a [email protected] -p 2223 -g work/backup
List available machines
sshh list
Name Group ssh Port
-------------------------------------------------------------------------------
pi personal [email protected] 2222
backup work/backup [email protected] 2223
skynet work/prod [email protected] 22
List machines on a specific group
sshh list -g work
Name Group ssh Port
-------------------------------------------------------------------------------
backup work/backup [email protected] 2223
skynet work/prod [email protected] 22
List machines on a specific group and subgroup
sshh list -g work/prod
Name Group ssh Port
-------------------------------------------------------------------------------
skynet work/prod [email protected] 22
Connect to a machine
sshh ssh skynet
Connect to a machine using root
user
# connect to a machine with root user
sshh ssh skynet --root