Hi Guys... I need to transfer some files from one server to another. This is the command that I normally use: rsync -ae ssh myfiles 88.88.88.88:/directory-owned-by-root/ Code (markup): This won't work because I have changed the ssh port to 5678 (example) and I have disallowed root login. My normal login is: mylogin. So I tried: rsync -ae 'ssh -p5678 -lmylogin' myfiles 88.88.88.88:/directory-owned-by-root/ Code (markup): This won't work because mylogin doesn't have permission to write to root ownership. Has anybody got any ideas how I can copy my files Thanks, John C
why don't you change the directory? rsync -ae 'ssh -p5678 -lmylogin' myfiles 88.88.88.88:/directory-owned-by-mylogin/
Hello there, The command should be as follows: rsync -ae 'ssh -p 5678' myfiles myuser@88.88.88.88:/directory-owned-by-user/ Code (markup): Chris
Hi Guys.. Many thanks for your reply. I found that if I PULLED rather than PUSHED it worked for me. This is the command that I used: rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/ Code (markup): Thank you, John C