openssh-unix-dev October 2011 archive
Main Archive Page > Month Archives  > openssh-unix-dev archives
openssh-unix-dev: Re: scp with different users

Re: scp with different users

From: Peter Stuge <peter_at_nospam>
Date: Mon Oct 10 2011 - 22:50:21 GMT

Alex Bligh wrote:
>> Alex Bligh wrote:
>>> why
>>> scp a@b:c d:
>>> fails, where
>>> scp a@b:c .
>>> scp c d:
>>> succeeds?
>> The former copies from c to d while the latter first copies from c to .
>> and then from . to d.
> The former copies file 'c' from user 'a' at host 'b' to the current
> user at host 'd'.

Sorry, where I wrote c I meant to write b.

> What I am asking is why the former can succeed but the latter fail

What you asked before was the opposite. Which is it? :)

Does ssh a@b ssh d work?

Is the username on d also a, or is the username on d the same as on
the local machine?

openssh-unix-dev mailing list