Last active
April 10, 2018 06:38
-
-
Save nsa-yoda/5504879 to your computer and use it in GitHub Desktop.
Small bash script to open multiple terminal windows and auto SSH to several servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies: gnome, sshpass, ssh, gui | |
gnome-terminal --maximize --tab --title='Hades' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Kronos' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' \ | |
--tab --title='Zeus' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Midas' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' \ | |
--tab --title='Thor' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Herc' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm new to shell scripting, but I was wondering is there any way that we can run these processes synchronously?
(I mean, Kronos terminal gets executed after completion of Hades and so on)