1 |
I dont see ssh as being a good solution in this case. On a firewalled |
2 |
single user machine, the complexity of going through ssh (which seems to |
3 |
have a patchy history as regards security itself) seems like it might be |
4 |
more of a risk (i.e., misconfiguration, security holes etc) as well as |
5 |
the inconvenience of an unwieldy command line compared to the |
6 |
alternative - simplicity. |
7 |
|
8 |
How does Mandrake, RedHat etc do this, as they work in the fashion I |
9 |
desire? |
10 |
|
11 |
I do use ssh in the above mode for external connections, but am |
12 |
unconvinced it is useful or even adds anything but risky inconvenience |
13 |
in a fully local mode. I am convinced there is a point where security |
14 |
can be overdone and be self-defeating in the long run. |
15 |
|
16 |
BillK |
17 |
|
18 |
On Sat, 2002-10-19 at 08:03, Troy Dack wrote: |
19 |
> On Sat, 2002-10-19 at 09:45, William Kenworthy wrote: |
20 |
> > xhost +localhost |
21 |
> > su - |
22 |
> > export DISPLAY=localhost:0.0 |
23 |
> > |
24 |
> > Using "su -", requires a display set. Where does one put the xhost and |
25 |
> > export in a generic sence? I have a single user machine and often use a |
26 |
> > number of x displays - how could I set up to do the above automaticly, |
27 |
> > no matter which X dispaly I am on? |
28 |
> > |
29 |
> > BillK |
30 |
> |
31 |
> You really don't want that configured as a "default" it is not the most |
32 |
> secure idea. |
33 |
> |
34 |
> A better alternative is to install ssh on the local machine, configure |
35 |
> public/private key pairs for your root account, make ssh only listen on |
36 |
> localhost (127.0.0.1), enable automatic X11 forwarding and then whenever |
37 |
> you want to run an X app as root do: |
38 |
> |
39 |
> ssh -X root@localhost /path/to/application |
40 |
> |
41 |
> The overheads in running a ssh server are really not that much when you |
42 |
> are doing it on the local machine only. |
43 |
> |
44 |
> |
45 |
> -- |
46 |
> Troy Dack |
47 |
> http://linux.tkdack.com |
48 |
> |
49 |
> |