net/ssh in ruby. ssh.exec fails

Discussion in 'Ruby' started by salamond, Feb 17, 2011.

  1. salamond

    salamond Guest

    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.
    salamond, Feb 17, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. saga99x
    Replies:
    3
    Views:
    214
    Caveman
    May 10, 2007
  2. Une Bévue

    net/ssh exec builtin command (cd)

    Une Bévue, Jul 26, 2008, in forum: Ruby
    Replies:
    2
    Views:
    161
    Une Bévue
    Jul 26, 2008
  3. Tench Johnson
    Replies:
    1
    Views:
    276
    Biff Tannen
    Apr 23, 2010
  4. Guillermo Riojas
    Replies:
    0
    Views:
    155
    Guillermo Riojas
    Nov 26, 2010
  5. Replies:
    0
    Views:
    79
Loading...

Share This Page