Error while opening SSH

Discussion in 'Ruby' started by MM, May 31, 2007.

  1. MM

    MM Guest

    I am new to ruby. I was planning to automate some deployment processes
    and ruby scripts seem to provide an excellent medium to achieve the
    same. I am trying to start an SSH session and I get following error
    shown below. I tried the solution provided at
    http://www.mail-archive.com//msg01108.html. I
    added the NI_NUMERICSERV flag while getting the IP address in session.rb
    file as suggested in the post. But am still gettting the error. Am I
    missing anything here?

    Thanks
    Mahesh


    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/net/ssh/host-
    key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class
    (NoMeth
    odError)
    from C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-
    ssh-1.1.0/lib/
    net/ssh/host-key-verifier.rb:25:in `verify'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh/lenient-host-key-verifier.rb:9:in `verify'
    from C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-
    ssh-1.1.0/lib/
    net/ssh/transport/kex/dh.rb:165:in `verify_server_key'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh/transport/kex/dh.rb:232:in `exchange_keys'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/n
    eedle/lifecycle/proxy.rb:60:in `__send__'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/n
    eedle/lifecycle/proxy.rb:60:in `method_missing'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh/transport/session.rb:183:in `exchange_keys'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0 /lib/
    net/ssh/transport/session.rb:144:in `kexinit'
    ... 31 levels...
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh/session.rb:106:in `initialize'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh.rb:47:in `new'
    from
    C:/development_tools/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.0/lib/
    net/ssh.rb:47:in `start'
    from testssh.rb:3

    --
    Posted via http://www.ruby-forum.com/.
     
    MM, May 31, 2007
    #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. loial
    Replies:
    0
    Views:
    441
    loial
    Feb 3, 2009
  2. loial
    Replies:
    0
    Views:
    427
    loial
    Feb 10, 2009
  3. Tench Johnson
    Replies:
    1
    Views:
    328
    Biff Tannen
    Apr 23, 2010
  4. salamond

    net/ssh in ruby. ssh.exec fails

    salamond, Feb 17, 2011, in forum: Ruby
    Replies:
    0
    Views:
    278
    salamond
    Feb 17, 2011
  5. Deepika
    Replies:
    2
    Views:
    239
    Deepika
    Nov 14, 2006
Loading...

Share This Page