scp between two remote hosts

Shih, Robert robert.shih at uk.nomura.com
Sat Jan 19 02:53:58 EST 2002


Hi All,

I am running openssh (OpenSSH_2.9p1, SSH protocols 1.5/2.0).  The scenario
is that I have got three machines (A, B and C).  The sshd on host A is
listensing on port 1234, and the sshd on host B is listensing on port 5678.
How can I set up a scp from a third host C so as to copy a file from host A
to host B?

scp -P 1234 myname at A:/var/tmp/file1 -P 5678 myname at B:/var/tmp/file1

does not work and C always try to connect to sshd on A at port 22.

Rgds.

Bob Shih


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.





More information about the openssh-unix-dev mailing list