I am trying to a SCP on my local server that copies 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 firstname.lastname@example.org:/home/myimages/images.tar.gz email@example.com:/home/myimages/images.tar.gz
But i get the following error:
ssh: connect to host xxx.xxx.xxx.222 port 22: Connection timed out
Thanks in advance.