I just realized that for some reason the server was ignoring the
server.username setting and was actually running as the user who
launched the server from the command line. So, when I started the server
from my normal user account on the development machine. That account
could connect with psks but not the application account.
Problem solved.
Thanks!
zdennis wrote:
> Subject:
> Re: [Net-ssh-users] Problem using preshared keys
> From:
> zdennis <zdennis at mktec.com>
> Date:
> Fri, 21 Jul 2006 14:14:21 -0400
> To:
> net-ssh-users at rubyforge.org
>
> To:
> net-ssh-users at rubyforge.org
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> With 1.0.9net/ssh I get:
>
> irb(main):008:0> s = Net::SSH.start( ''jboss'',
''zdennis'' ) do |session| ; end; true
> Enter password for /home/zdennis/.ssh/id_dsa:
> => true
>
> You say it works for your app''s user account via command line? Are
you switching to that user, and ssh''ing into the server box?
> Can you become that user and give us output of:
>
> ssh -vv user at server
>
> What are the permissions for the .ssh directory and files for your
app''s account for both client and server?
>
> Zach