Remote root ssh
Brian McKee
brian.mckee at gmail.com
Thu Jun 28 15:12:21 UTC 2007
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...
More information about the ubuntu-users
mailing list