Skip to content

Instantly share code, notes, and snippets.

@iDiogenes
Created July 9, 2009 23:44
Show Gist options
  • Save iDiogenes/144103 to your computer and use it in GitHub Desktop.
Save iDiogenes/144103 to your computer and use it in GitHub Desktop.
servers = ["viola-rs1.loni.ucla.edu", "viola-rs2.loni.ucla.edu" ]
servers.each do |server|
Net::SSH.start('#{server}', 'tester', :password => "xxxxxxxx") do |ssh|
output = ssh.exec!("hostname")
puts output
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment