Every morning, when I come to work, there are a set of machines I need to get connected to. Of course, since I s2d or s2r my laptop overnight, the previous day ssh sessions are lost. Even worse, they take time to actually kick me out to my local prompt.
If you’re using gnome-terminal, you can write a small shell script that will open up these sessions for you. All my servers use private/public keys as login method, so with the help of the ssh-agent, it is a straight through login for all servers.
$GT –window –maximize –profile=prod –title=”serverprod” -e “ssh server1″
–tab –profile=prod –title=”serverprod2” -e “ssh server1″
–tab –profile=dev –title=”serverdev1” -e “ssh server2″
–tab –profile=dev –title=”serverdev2” -e “ssh server2″
–tab –title=”servertest1” -e “ssh server3″
–tab –title=”servertest2” -e “ssh server3”