On Tue, 23 Mar 2010, Tim Bruce - PLUG wrote:

On Tue, March 23, 2010 09:27, Ali Corbin wrote:
On Tue, Mar 23, 2010 at 9:22 AM, Scott Howard <[email protected]> wrote:
In using Open SSH to a linux box, I get the user directory.  I can move up to the root but cannot transfer files or work.  How do I become the root user.

Have you tried ssh r...@thehostname?

You may not be able to log in as root directly from ssh. Many sysadmins prevent root from logging in as a security measure. Just copy the files to your directory and then use "su -" or "sudo su -" to become the root user and copy them or unzip them to whereever.

Oh, and the option is:
  PermitRootLogin (yes|no)
in /etc/ssh/sshd_config

Alternatively, there's the forced-commands-only option:

  PermitRootLogin forced-commands-only

In /root/.ssh/authorized_keys, you'd limit the command (and, optionally, the client host) that can be run with that key, e.g.,

from="trusted.yourdom.com",command="/bin/ls" ssh-rsa AAAA....

The trick is that doing scp that way is hard. rsync is easier to configure as a forced command:

  http://troy.jdmz.net/rsync/index.html

--
Paul Heinlein <> [email protected] <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to