I am trying to use SCP on my local server to copy a file from one remote server to another remote server (both remote servers use a custom port (xxxx)
I am trying:
scp -r -P xxxx [email protected]:/home/myimages/images.tar.gz [email protected]:/home/myimages/images.tar.gz
But I get the following error:
ssh: connect to host xxx.xxx.xxx.222 port 22: Connection timed out
Any suggestions?