Run scp as ubuntu@ copying to Ubuntu system with correct permissions?
- by Heinrich Schmetterling
I ssh into a ubuntu box with username "ubuntu" and I can become root without entering a password via "sudo su". How can I scp files onto this box using the ubuntu@ username? It does not allow me to do so using root@. The error is:
scp: /etc/...: Permission denied
I can do this same task in rsync by using --rsync-path="sudo rsync" for example.