net/ssh in ruby. ssh.exec fails



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.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question