Suppose servers myLaptop, A and B. The same ssh-agent should allow me to go over A and B without readding the ssh-agent in the server A to go to B.
$ eval `ssh-agent`; ssh-add ~/.ssh/mePriv #In myLaptop
$ ssh me@kosh.A.com #Works without typing pwd
$ ssh me@triton.A.com #Won't work, ssh-agent not alive in A?!
$ eval `ssh-agent`; ssh-add ~/.ssh/mePriv; ssh me@triton.A.com #Works, dupe...
where now I have the ssh-agent running in myLaptop and in A. Is there some easy way so that I could only have the ssh-agent set up once in myLaptop without retyping everything again in A?
P.s. I am not sure about technical terms but the same thing I am trying to achieve here to connect to server B through the server A can be done with something like ssh-forwarding/ssh-tunneling, not sure about correct terminology. For this question, focus on ssh-agent. Easiest solution very well appreciated!