Bare with me here as I am very new to all of this.
I'm trying to write a simple script with the SSH gem and when I run it
in the terminal I get this message.
./ssh_restart.rb:3:in `require': no such file to load -- net/ssh
(LoadError)
Here is the code:
#!/usr/bin/ruby
require 'net/ssh'
Net::SSH.start('10.0.1.200', 'Administrator', 'pw') do |ssh|
Dir.foreach('.') do |file|
puts file
end
end
What am I doing wrong?
···
--
Posted via http://www.ruby-forum.com/.