…for SSH’ing into multiple machines at once. It opens a new terminal window for each ssh connection host you provide it in a tiled configuration (By default)


Simply place it in a function in your .bash_profile with the IPs you want to connect to and voila!

For example :

function ssh-hosts() {



After running “source .bash_profile” for your shell to re-read your .bash_profile, typing “ssh-hosts” will connect to the 4 IPs you provided, open up 4 ssh windows, and a single “master” window for controlling all 4 ssh sessions. Brilliant!


Leave a Reply

You must be logged in to post a comment.