Project

sshp

0.0
No commit activity in last 3 years
No release in over 3 years
SSHP - Let's Pablo memorize your ssh credentials
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

SSHP - Let's Pablo memorize your SSH credentials.

Instalation

gem install sshp

Usage

To save an alias without hostname:

sshp-alias u -i ~/keys/my_key.pem -l ubuntu

Then

sshp u hostname.com

To save an alias with hostname:

sshp-alias u -i ~/keys/my_key.pem -l ubuntu hostname.com

Then

sshp u

.sshp

All aliases will be saved at ~/.sshp.

ssh_config

Remember that you can also use ssh_config for many cases in place of sshp.

# ~/.ssh/config
Host u
    HostName hostname.com
    User ubuntu
    IdentityFile ~/keys/my_key.pem

Then

ssh u

Have a look at "Simplify Your Life With an SSH Config File" it is a well detailed post about ssh_config.

sshp vs ssh_config

The difference between sshp vs ssh_config is that using sshp you can save the aliases without Host and HostName, you can save only the credentianls, which is usefull when you have multiple servers/hosts using the same credentianls i.e. sshp u host-a, sshp u host-b etc.