{
"name": {
"user" : "optional__user",
"ip" : "host_or_ip"
},
"example with rsa key": {
"user" : "www-data",
"ip" : "my-server-dev.example.com",
"id_rsa" : "/Users/wareq/.ssh/id_rsa"
},
"example all possible parameters": {
"user" : "www-data",
"ip" : "my-server-test.example.com",
"port" : 22,
"id_rsa" : "/Users/wareq/.ssh/id_rsa",
"args" : "-v"
}
} ss exampleThe script will ask you which of the server you would like to connect:
- DEV example ( [email protected]:22 )
- TEST example ( [email protected]:22 ) Enter a number for a server ( or q to quit ):
ss dev exampleOnly one server match the pattern. The Script will direct connect you to my-server-dev.example.com
This is fork of nullworks-ss project. Changes:
- The code has been cleaned up
- "Connect" method was extracted
- New "id_rsa" parameter in servers.json
- I have resigned from converting csv to json. If you would like to add new host please edit servers.json file.
- Flow of the script was changed. Get connection name (or its parts) only from script execution arguments. Don't prompt for it.
- Texts and colors has changed little