This is a discussion on Re: Agent Forwarding Question for the list - openssh ; Jason Powers wrote: > >>> me@desktop> ssh-add >>> (type pass for key) >>> me@desktop> ssh someuser@server1 >>> >>> now from that terminal >>> someuser@server1> ssh otheruser@server2 >>> >>> It asks me for a password when I try to jump to ...
Jason Powers wrote:
>
>>> me@desktop> ssh-add
>>> (type pass for key)
>>> me@desktop> ssh someuser@server1
>>>
>>> now from that terminal
>>> someuser@server1> ssh otheruser@server2
>>>
>>> It asks me for a password when I try to jump to the second server. I
>>> can put the password in and it works, but I think at this point it
>>> should be forwarding the key.
What happen if list the current keys the agent hold?
$ ssh-add -l
If it's empty, can you do it before "ssh someuser@server1"?
If it's not empty, can you on server2
ls -ld /home/otheruser/.ssh /home/otheruser/.ssh/authorized_keys*
Regards,
Simon Piette