So, I'm trying to use Net :: SSH :: Multi to log in to multiple computers using SSH and then execute shell commands on remote machines with session.exec ("some_command").
Code:
#!/usr/bin/ruby require 'rubygems' require 'net/ssh' require 'net/ssh/multi' Net::SSH::Multi.start do |session|
The problem I'm currently facing is when I type the command in an interactive prompt, "session.exec" does not return a result. I quit the program, I was wondering if anyone ran into this problem and can tell me how I can solve this problem?
source share