rsync: connection unexpectedly closed

ssh: connect to host xx.xx.xx.xx port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]

Fix:
rsync -avz -e “ssh -p 2222” /src root@hotsname:/destination

Where 2222 is SSH custom post

Leave a Reply

Your email address will not be published. Required fields are marked *