Created
December 14, 2012 19:56
-
-
Save johngh/4288147 to your computer and use it in GitHub Desktop.
VBS script to launch a list of SSH sessions to user@host[1-6]
This file contains 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
Set objShell = CreateObject("WScript.Shell") | |
dim user | |
user = "john" | |
dim hosts | |
hosts = "host1 host2 host3 host4 host5 host6" | |
dim host | |
for each host in split(hosts) | |
objShell.Exec "C:\Program Files\PuTTY\PUTTY.EXE -ssh " + user + "@" + host | |
next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment