Remote root ssh

Eric S. Johansson esj at
Thu Jun 28 12:15:13 UTC 2007

fletcher johnson wrote:
> Hello, I'm trying to ssh remotely into my ubuntu box as root and 
> transfer files. How can I do this without enabling root (Let's use sudo 
> only)?
> Basically something like this. scp 
> user at .
> Thanks!

you append your SSH public-key into /root/.ssh/authorized_keys.  Now you can 
login as root but using the authentication of SSH. copy looks like

scp root at .

More information about the ubuntu-users mailing list