Gentoo Archives: gentoo-user

From: Daniel Troeder <daniel@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT -- superuser file manager access to remote via ssh with no root login?
Date: Tue, 24 Feb 2009 20:26:24
Message-Id: 1235507178.9075.9.camel@maya.local
In Reply to: [gentoo-user] OT -- superuser file manager access to remote via ssh with no root login? by Michael Higgins
1 Am Dienstag, den 24.02.2009, 09:02 -0800 schrieb Michael Higgins:
2 > I can't figure this one out.
3 >
4 > Have disallowed root login, public key auth.
5 >
6 > Have a bunch of random renaming to do on that machine though, so would like to point and click for a change.
7 >
8 > Is this possible? No GUI libs on the remote machine...
9 >
10 > I was thinking sshfs, but since I can't login directly as root, is there some other way?
11
12 Something like this might work:
13
14 # cp /etc/ssh/sshd_config /root/sshd_root_allow_config
15
16 Then edit /root/sshd_root_allow_config to allow root-login, to listen on
17 a port != 22 and to use another PID-file:
18 ---
19 Port 222
20 PidFile /var/run/sshd_root_allow.pid
21 PermitRootLogin yes
22 ---
23
24 Install app-admin/sudo and configure, that your login-user can execute
25 the following two commands (maybe only these!?!):
26 # sudo /usr/sbin/sshd -f /root/sshd_root_allow_config
27 # sudo kill $(cat /var/run/sshd_root_allow.pid)
28
29 Then you can use sshfs to port 222 between the two commands as root :)
30
31 Bye,
32 Daniel

Attachments

File name MIME type
signature.asc application/pgp-signature