I have two remote hosts.
host1-> 10.3.0.1
host2-> 10.3.0.2
Both run an ssh server.
The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy something from host1 to host2 without logging into either host1 or host2 via ssh. Something like,
scp [email protected]:/path/to/file [email protected]/path/to/file
How can I do this, please note that the two hosts use different ports for ssh.
Thanks guys.