Remote root ssh

ruscook ruscook_oz at yahoo.com.au
Fri Jun 29 08:52:33 UTC 2007


Why not log in as a normal user and use "sudo -i" to turn it into a root 
shell as needed?

Brian McKee wrote:
> On 28/06/07, Scott Lockwood <scott at guppylog.com> wrote:
>   
>> On Thu, 2007-06-28 at 08:15 -0400, Eric S. Johansson wrote:
>>     
>>> 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 .
>>>       
>> Root also must be allowed to login remotely via ssh - which is a really,
>> really bad idea.
>>     
>
> If it's by key only (not by password) it's not so bad...
>
>   

-- 

Kind Regards Russell
==================
www.windsorcycles.com.au
sales at windsorcycles.com.au
ph. 02 4577 3209
bikes.no-ip.info
Linux user #369094
==================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070629/adc40742/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruscook_oz.vcf
Type: text/x-vcard
Size: 127 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070629/adc40742/attachment.vcf>


More information about the ubuntu-users mailing list