Extended ssh command to use multi ssh_config, namespace and command completion.
You can install sshx from RubyGems.
gem install sshx
You can use the sshx in the same way as ssh command because sshx is just a wrapper of ssh.
sshx hostname
While ssh has only one configuration file .ssh/config, sshx can have multi configuration files in .sshx directory.
$ ls ~/.sshx/
album blog config ssh_config
The config file is configuration files for sshx. The album, blog and ssh_config (It's imported from ~/.ssh/config) are configuration for ssh.
You can connect to some hosts with tmux.
sshx blog.prd.web1,blog.prd.web2,blog.prd.web3
tmux must be installed if you use multi hosts connection.
Syntax of sshx configuration files is the superset of ssh. It supports namespace additionally.
Namespace blog
Host prd.web
HostName blog.katty.in
Port 22
User katty0324
IdentityFile ~/.ssh/id_rsa
Then you can use following command.
sshx blog.prd.web
Command completion is also supported in sshx.
$ sshx blog.p
# If You type [TAB] here
$ sshx blog.prd.web
# the hostname will be compeleted.
This tool is under MIT license.