|Main Archive Page > Month Archives > openssh-unix-dev archives|
Alex Bligh wrote:
>> Does ssh a@b ssh d work?
> "ssh a@b" works
> "ssh d" works
> "ssh a@b ssh d" (as a single command) will not work,
Then scp from b to d will also not work.
> as b does not have the private key to get to d, only localhost
You can use ssh-agent to make direct communication from b to d work
while the key remains on localhost.
> I had presumed (perhaps wrongly), that scp was opening two
> sessions, one to b and one to d, and acting as a sort of
>> Is the username on d also a, or is the username on d the same as on
>> the local machine?
> The username on d is the same as on the local machine.
Cool. It doesn't work because a@b can not authenticate for d. scp
does not first download data locally unless you explicitly tell it
openssh-unix-dev mailing list