[PLUG] Open SSH - Signing on at root
Aaron
ke7ezt at gmail.com
Tue Mar 23 17:32:10 UTC 2010
scp can be sort of a pain. but I must say--when you get it figured out
you'll feel extra geeky and use it far more than you'd think you would! I
love ssh/scp/wget! :D
On Tue, Mar 23, 2010 at 10:27 AM, Paul Heinlein <heinlein at madboa.com> wrote:
> 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 <showard at k-hlaw.com>
>>> 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 root at 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 <> heinlein at madboa.com <> http://www.madboa.com/
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
>
--
aaron at kalosaurusrex:~$
Discere docendo - To learn through teaching.
Libera Te Tutemet - You, free yourself.
More information about the PLUG
mailing list