1822894 Members
3661 Online
109645 Solutions
New Discussion юеВ

ssh and GUI

 
SOLVED
Go to solution
Maaz
Valued Contributor

ssh and GUI

Hello Dear Gurus,

SSH Server OS: rhel AS 4.0
SSH server Ip:10.0.0.100
ssh Client: rhl 9.0
ssh client IP: 10.2.2.20

i ssh to my server, and after sucesfuly login, I ran 'startx', so that i can work on my server in GUI environment... but this(i.e issuing 'startx' command) cause the X-server runing on SSH server.... :(
what should i do, so that i can work remotely from ssh client on my ssh server, in GUI environment.

Any Help will be HighlY AppreciaTed
Regards
Maaz
4 REPLIES 4
Rick Garland
Honored Contributor

Re: ssh and GUI

Are you running a GUI on your client - the rh9?

Start by issuing the 'xhost +' command.

Once you connect to the rh4 system, export your display back to your IP address and then you can run all the X applications you want.
Ivan Ferreira
Honored Contributor
Solution

Re: ssh and GUI

I think that starting the GUI, the way you want to do, is not possible. (Maybe i'm wrong). I never seen that somebody runs the startx command from a SSH session.

You can start locally the X session, then connect using SSH, and export the DISPLAY variable in the remote host.

In the client computer, run:

startx

xhost +

Connect to the remote host using ssh.

In the remote host run:

export DISPLAY=10.2.2.20:0

Then run the utility you want to run, like linuxconf.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Maaz
Valued Contributor

Re: ssh and GUI

Millions of Thanks Dear Rick Garland and
Ivan Ferreira.

Regards
Maaz
Maaz
Valued Contributor

Re: ssh and GUI

and Dear Ivan Ferreira ... thanks for such a step-by-step GUIDE.

Thanks Forum
Regards
Maaz