A command line tool to manage your ssh connections
github.com
github.com
Host *.whatever.net
IdentityFile ~/.ssh/whatever-key
ServerAliveInterval 10
port 1022
and then add specific information and aliases per host Host someserver.whatever.net someserver ss
Hostname someserver.whatever.net
User spin
Host otherserver.whatever.net otherserver os
Hostname otherserver.whatever.net
User dritf
Plus, since you probably edit it only once in a while, you don't need to remember the syntax and can simply base new additions on existing entries.Manage your SSH like a boss? Perhaps, but only in the pointy-haired can't-read-man-ssh_config boss sense of the word.
For those that don't want to install a script and would prefer to understand the tools they already have try this:
http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-...
like;
- managing /etc/hosts - managing crontab
It's just a preference to do it with a command line tool, or just doing it in the config with editor.
So, not for us. We can move along and be happy someone else is taking care of those people.
vim ~/.ssh/configWhy is this preferable to using:
vim/emacs/subl/nano ~/.ssh/config ?
I'm actually working on a web-based gui for managing ssh configs and I'm likely to switch to python and reuse some of this
loading and dumping ssh configs would be tricky. let me know if you need further assistance.
Very nice work
For the time being, though, this just looks like a lightweight editor for ssh_config.
Its included as part of the bash-completion package on most distributions of linux.
Its got extremely good completion support for hostnames
It has the added advantage of also auto-completing for scp.
example ssh config: Host vps hostname 1.1.1.1 port 22 identityfile /home/emre/.ssh/vps.pub
If you want to override stuff, just do it like ssh vps -p 99.
And there is bash completion support with ssh, too. try it.
ssh <TAB>