I tried uploading files to server from my laptop through rsync command: rsync -avP --stats local/path/ user@host:remote/path
. But I got permission denied errors because of not having permission to write. Cyberduck logged in & gave me the same error. At server side, root is disabled, with another user with sudo enabled.
When I was experimenting with rsync this worked perfectly, but left few files unsynced because of permission issues: rsync -avP --stats user@host:remote/path local/path
Also when I tried rsync from server end [learnt from stackoverflow]: rsync -avP --stats remote/path localuser@localhost:local/path
, I failed because of not getting localuser & localhost correctly. I tried my ip address, hostname used by my ip address, my laptop's ip address & my laptop user's name. None of them worked.
How can I get results from either end without enabling root user at server end.