Using rsync over a non 22 ssh port
Hello,
I am trying to use rsync to update the home directory of an account that just has been transferred. But the destination server has its ssh listening on a port diffrent that 22. So how can I update the following command to reflect the port number :
rsync -av --progress /home/user/* NEW-Server-ip:/home/user/
Thanks a lot :)
-
rsync -av -e "ssh -p#" --progress /home/user/* NEW-Server-ip:/home/user/ 0 -
Working fine for me. Thanks dalem :) 0 -
Welcome 0 -
Glad to see you were able to get some assistance with this. Thanks @dalem 0
Please sign in to leave a comment.
Comments
4 comments