"rsync" from remote to local
Try this:
rsync -ave 'ssh -p 456' /home/cavo/python/ [email protected]:/home/wolfy/py/
Note that the trailing slashes on the paths are very important, they signal that you are syncing a directory to a directory. The -e
switch helps rsync
know it is going to be using ssh
transport, and while we are specifying the transport we also tell ssh what port it's going to have to use to talk to the remote site. Then the username and remote host ip are specified as part of the target.