with scp I can get a file
scp remoteA:file .
and put a file
scp file remoteB:
but when I try
scp remoteA:file remoteB:
I get
ssh: Could not resolve hostname remoteB: Name or service not known
lost connection
why?
EDIT:
the remoteA and remoteB description is in ~/.ssh/config
scp
to copy between two remote hosts works perfectly fine for me. Are you sure you haven't made a typo in your command (like you have made in your question title)? – aland Apr 30 '12 at 16:31