Remote root ssh

Eric S. Johansson esj at harvee.org
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 192.168.1.103:/home/user/somefile_with_root_perms .
> 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 192.168.1.103:/home/user/somefile_with_root_perms .





More information about the ubuntu-users mailing list