Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > net/ssh in ruby. ssh.exec fails

Reply
Thread Tools

net/ssh in ruby. ssh.exec fails

 
 
salamond
Guest
Posts: n/a
 
      02-17-2011
I just finished install net-ssh-2.1.0.gem.
And following v2 example, I did this:

irb(main):005:0> Net::SSH.start("sh-ubuntu6", "vdeadmin", "fishbowl") do |ssh|
irb(main):006:1* puts ssh.exec("pwd")
irb(main):007:1> end
NoMethodError: private method `exec' called for #<Net::SSH::Session:0xb7e33840>


undefined method `exec!'
exec - private method.

any one has encountered this before?

I googled online, search in mailer archive, and tried with several
different versions of net/ssh.

none of them helps.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM
slideshow fails, Firefox debugger also fails lkrubner@geocities.com Javascript 2 12-23-2004 06:22 PM
Wireless Zero Configuration Servoce fails to start andrew Wireless Networking 0 07-28-2004 03:08 PM
IAS fails with certs from Stand Alone CA Harrison Midkiff Wireless Networking 2 07-22-2004 09:45 PM
Forms Authentication Fails Between ASP.NET 1.0 and 1.1 Applications (Cookie Decryption Fails) John Saunders ASP .Net 1 11-18-2003 03:25 PM



Advertisments