Skip to content

Instantly share code, notes, and snippets.

@johngh
Created December 14, 2012 19:56
Show Gist options
  • Save johngh/4288147 to your computer and use it in GitHub Desktop.
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]
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