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 [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?
Thanks in advance.
I ended up doing the following:
An SSH followed by an SCP.
Ssh-pipes are extremely useful. Learn and love them!