NET:SSH fails authentification with :keys - ssh works

T

Tench Johnson

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 (e-mail address removed)

and i log in without a glitch.

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

tench
 
B

Biff Tannen

Tench said:
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 (e-mail address removed)

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
 

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

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top