Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Ara4Sh/sshconfig
Minimal command to Add/Remove/list ssh aliases in $HOME/.ssh/config
https://github.com/Ara4Sh/sshconfig
identitykey ssh sshconfig
Last synced: 3 months ago
JSON representation
Minimal command to Add/Remove/list ssh aliases in $HOME/.ssh/config
- Host: GitHub
- URL: https://github.com/Ara4Sh/sshconfig
- Owner: Ara4Sh
- Created: 2015-12-28T09:34:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-04T19:33:05.000Z (7 months ago)
- Last Synced: 2024-08-01T19:33:06.024Z (6 months ago)
- Topics: identitykey, ssh, sshconfig
- Language: Shell
- Size: 123 KB
- Stars: 104
- Watchers: 7
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog
Awesome Lists containing this project
- awesome - sshconfig
README
# sshconfig : ```ssc```
Minimal command to Add/Remove/list ssh aliases in $HOME/.ssh/configto contribute please fork add your code and make a pull request. feel free to add something new and helpful
# Installation
SSC is available on Linux , BSD and OSX```
curl -L http://git.io/sshconfig | bash
```
# Usage#### Add a Host(Alias) :
```
ssc add NAME USERNAME HOSTNAME [IdentityKey] [PORT]
ssc add NAME USERNAME HOSTNAME [PORT]
scc add NAME USERNAME HOSTNAME [IdentityKey]
```
PORT and Identitykey are optional , PORT is 22 by default and Identitykey is your ssh private key generating by ssh-keygen in $HOME/.ssh .Example :
```
ssc add elastix root 192.168.0.100
ssc add nginx root 192.168.0.101 /home/arash/.ssh/arash.pem
ssc add aws-haproxy root 192.168.0.102 /home/arash/.ssh/arash2.pem 2223
```#### Remove a Host(Alias) :
```
sshconfig remove NAME
```
Example :
```
ssc remove nginx
ssc remove aws-haproxy
```
#### List Existing Hosts(Aliases) :
List all Hosts(Aliases) :
```
ssc list
```Show information for a Host(Alias) :
```
ssc list HOST
```
Example:
```
ssc list aws-haproxy
>> Host: aws-haproxy HostName: 192.168.0.102 User: root Port: 22 IdentityKey: /home/arash/.ssh/arash.pem
```
#### Search for a Host
```
ssc search haproxy
>> Host: haproxy-pars Hostname: 192.168.0.151 User: arash Port: 22
>> Host: haproxy-afra Hostname: 192.168.1.151 User: arash Port: 22
>> Host: aws-haproxy Hostname: 192.168.1.102 User: root Port: 22
```
#### Connect to a Host
You can connect to a host if exist:
```
ssc aws-lsb
```
#### Edit a Host
Experimental feature
```
ssc edit nginx-front
```#### Version and information
```
ssc version
```# Change log
Version 1.8:
- New installer file
- Edit option included (testing)
- pretty output
# To do:
Share config with other Administrators# ScreenShot
![alt scrsht](https://raw.githubusercontent.com/Ara4Sh/sshconfig/master/screenshot.png)