https://github.com/phstc/sshp
SSHP - Let's Pablo memorize your ssh credentials
https://github.com/phstc/sshp
Last synced: over 1 year ago
JSON representation
SSHP - Let's Pablo memorize your ssh credentials
- Host: GitHub
- URL: https://github.com/phstc/sshp
- Owner: phstc
- License: mit
- Created: 2013-06-11T02:51:48.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-12-22T13:11:45.000Z (over 12 years ago)
- Last Synced: 2025-02-27T18:00:14.229Z (over 1 year ago)
- Language: Ruby
- Size: 2.24 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
SSHP - Let's Pablo memorize your SSH credentials.
## Instalation
```sh
gem install sshp
```
## Usage
To save an alias without hostname:
```sh
sshp-alias u -i ~/keys/my_key.pem -l ubuntu
```
Then
```sh
sshp u hostname.com
```
To save an alias with hostname:
```sh
sshp-alias u -i ~/keys/my_key.pem -l ubuntu hostname.com
```
Then
```sh
sshp u
```
### .sshp
All aliases will be saved at `~/.sshp`.
## ssh_config
Remember that you can also use [ssh_config](http://linux.die.net/man/5/ssh_config) for many cases in place of sshp.
```sh
# ~/.ssh/config
Host u
HostName hostname.com
User ubuntu
IdentityFile ~/keys/my_key.pem
```
Then
```sh
ssh u
```
Have a look at ["Simplify Your Life With an SSH Config File"](http://nerderati.com/2011/03/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.