Introduction
Small utility for connecting to servers. Python 3 and no external dependencies.
Example
$ ./scon.py
scon> # tab
server1 server2 home office
scon> server # tab
server1 server2
scon> server
Not found.
scon> server2
ssh -p 12345 user@servername2 # debug output
ssh: Could not resolve hostname servername2: Name or service not known
scon> home
ssh user@172.16.0.15
user@172.16.0.15's password:
The programs included with the Ubuntu system are free software;
...
user@172.16.0.15:~$ exit
logout
Connection to 172.16.0.15 closed.
scon> office # or with key
The programs included with the Ubuntu system are free software;
...
worker@cooloffice:~$ exit
logout
Connection to 10.0.13.137 closed.
scon> q
$
Add servers to DB
$ sqlitebrowser scon.db # after first program run
The name field is ID and the attrs field is for a command, for example: ssh -p 1234 user@172.16.0.15.
name | attrs |
---|---|
office | ssh -p 55321 fred@192.168.7.11 |
www | ssh root@webserver |