Re: Agent Forwarding Question for the list



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



Relevant Pages

  • Re: Questions concerning Security Log
    ... > either empty or does not exist. ... In emacs i just get a blank screen. ... logs if you're not running an ssh server. ... >>certificates instead. ...
    (Fedora)
  • Re: X server questions newbie-esque
    ... >> How do I forward the output from this second server through my ssh ... > You don't need a second Xserver on the same machine, ... X is exported through SSH by default. ...
    (alt.os.linux.redhat)
  • Re: Agent Forwarding Question for the list
    ... Jason Powers wrote: ... someuser@server1> ssh otheruser@server2 ... You stil need to ssh -A user@server1 ... -l user Log in using this user name. ...
    (SSH)