NET:SSH fails authentification with :keys - ssh works

Discussion in 'Ruby' started by Tench Johnson, Feb 19, 2010.

  1. hi,

    i can't get my head around this:

    Net::SSH.start("url.i.need.com", 'root', :keys => ["/path/to/keyfile"],
    :verbose => Logger::DEBUG ) do |ssh|
    ssh.exec!("mount /persistent")
    end

    gives me failed authetification and

    E, [2010-02-19T20:38:31.198582 #1494] ERROR --
    net.ssh.authentication.session[80c6f360]: all authorization methods
    failed (tried publickey, hostbased, password, keyboard-interactive)

    but i can easily do

    ssh -i /path/to/keyfile

    and i log in without a glitch.

    any idea what could be going wrong here? many thanks in advance.

    tench
    --
    Posted via http://www.ruby-forum.com/.
     
    Tench Johnson, Feb 19, 2010
    #1
    1. Advertising

  2. Tench Johnson

    Biff Tannen Guest

    Tench Johnson wrote:
    > hi,
    >
    > i can't get my head around this:
    >
    > Net::SSH.start("url.i.need.com", 'root', :keys => ["/path/to/keyfile"],
    > :verbose => Logger::DEBUG ) do |ssh|
    > ssh.exec!("mount /persistent")
    > end
    >
    > gives me failed authetification and
    >
    > E, [2010-02-19T20:38:31.198582 #1494] ERROR --
    > net.ssh.authentication.session[80c6f360]: all authorization methods
    > failed (tried publickey, hostbased, password, keyboard-interactive)
    >
    > but i can easily do
    >
    > ssh -i /path/to/keyfile
    >
    > and i log in without a glitch.
    >
    > any idea what could be going wrong here? many thanks in advance.
    >
    > tench



    I am seeing the same issue. Does anyone know how to resolve this?

    Biff
    --
    Posted via http://www.ruby-forum.com/.
     
    Biff Tannen, Apr 23, 2010
    #2
    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. =?Utf-8?B?TWlrYQ==?=

    Authentification from a SAM base in ASP.NET|VB

    =?Utf-8?B?TWlrYQ==?=, Apr 25, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    310
    =?Utf-8?B?TWlrYQ==?=
    Apr 25, 2006
  2. sandeep Kanwal

    serial keys/validation keys

    sandeep Kanwal, Oct 29, 2004, in forum: C++
    Replies:
    1
    Views:
    585
    Mike Wahler
    Oct 29, 2004
  3. Stefaan Dewulf

    Active Directory Authentification in asp.net 2.0

    Stefaan Dewulf, May 17, 2005, in forum: ASP .Net Security
    Replies:
    2
    Views:
    116
    Jan Peter Stotz
    May 18, 2005
  4. salamond

    net/ssh in ruby. ssh.exec fails

    salamond, Feb 17, 2011, in forum: Ruby
    Replies:
    0
    Views:
    248
    salamond
    Feb 17, 2011
  5. Replies:
    0
    Views:
    107
Loading...

Share This Page