May have found a solution, after carefully re-reading the docs I
noticed this little tidbit...
*Public/private keys are always tried before the explicit password
authentication, even if you provide a password. Thus, if you /only/ want
to use public/private key authentication, simply remove the password
from the argument list.*
Ah-ha! So by adding the password to my Net::SSH.start calls this works
as a fail-safe for the SSH keys.
Seems to have solved the problem.
/ak
Andy Koch schrieb:> Hi Josh,
>
> first, thanks for helping me.
>
> I am indeed using key authentication. Not entirely sure what you mean
by...
>
> confirm this works via the command line without a prompt?
>
> ... but, I can fire up irb on the production server (where error is
ocurring) and run...
>
> Net::SSH.start(my_host, my_user) do |sess| end
>
> ... and I get the usual dump of stuff indicating a successful connection.
> I tried this several times in quick succession to see if there is a timing
issue, but it works every time.
>
> Could it be related to running from the Rails / Mongrel?
>
>
>> It looks like you are trying to ssh using key authentication.. Can
>> you confirm this works via the command line without a prompt?
I''m
>> guessing it''s asking for a password and failing (being a web
app)
>>
>> - Josh
>>
>
>
--
Andy Koch, Web Applications Developer