Remote root ssh

Robert Spanjaard spamtrap at arumes.com
Mon Jun 25 16:16:02 UTC 2007


On Mon, 25 Jun 2007 17:53:42 +0200, Robert Spanjaard 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
> 
> How about working from the location that requires root?
> 
> user at localhost:~$ ssh user at 192.168.1.103
> user at 192.168.1.103's password: xxxblahxxx
> [motd]
> user at 192.168.1.113:~$ sudo scp /home/user/somefile_with_root_perms [destination]

113 = 103, ofcourse :-)

-- 
Regards, Robert                                      http://www.arumes.com






More information about the ubuntu-users mailing list