Remote root ssh
Scott Lockwood
scott at guppylog.com
Thu Jun 28 14:25:58 UTC 2007
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.
--
Regards,
Scott Lockwood
More information about the ubuntu-users
mailing list