rsync -Paz -e "ssh -p xxxx" /path/to/source user@IPorHostname:/path/to/dest/"
telnet linux.org 22
Trying 107.170.33.185...
Connected to linux.org.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3
rsync -Paz -e "ssh -p 2222" /path/to/source [email protected]:/path/to/dest/
I can't connect to host.
telnet: connect to address IP: Operation timed out
telnet: Unable to connect to remote host
OK, you've been able to start over SSH, but it times out. Try without the "z" as well - I've had some issues when trying to transfer a large number of files to another location timing out. And if that doesn't work, you might need to edit on the server the /etc/ssh/sshd.conf file (I think that's the location/file) and change the timeout to something larger and restart sshd.rsync: connection unexpectedly closed (8 bytes received so far) [sender]