Trouble using ssh gem in OSX; can't load the library

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?

On Fri, Jun 13, 2008 at 6:25 PM, Anton B. [email protected]
wrote:

./ssh_restart.rb:3:in `require’: no such file to load – net/ssh
(LoadError)

#!/usr/bin/ruby

insert here:

require ‘rubygems’

I JUST figured this out before you posted… thanks though!