Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I´m try to test x remotly from another box. On the one box I have RH9 with sshd running and i'm able to connect from another box with RH9 using the ssh client. Now when I try to go to the first box and place a entry xhost + remote server it give me the above error.
When I login via ssh and type startx on the server box it loads GUI but not on remote terminal why?
You don't need to startx when you are on the remote machine. It is going to display on the xserver from the machine you started on.
Once you ssh to the remote machine try typing xclock or gnome-system-monitor. It is running on the remote machine and displaying it.
Once you are on the remote machine you might need to export DISPLAY=<remote ip>:0
thanx for the response and clearing the startx issue i tried what u said in exporting dispaly, but when I run xclock it says cannot open display: <IP ADDR>:0. Is this not due to the error I posted. Like I said it when I run xhost + <remote box ip> it gives me the error xhost: unable to open display.
You probably need to forward the x11 connection. You can create (or add to) a file in your .ssh directory. The file is ~/.ssh/config and it should have the line:
ForwardX11 yes
This is also an ssh parameter:
ssh -X rh9box.to.connect.to
I just reread and noticed I missed the original point ( xhost + error ), I will try to reply later as I must go to work now.
I am a little confused as far as the sequence of events. I will give on example of how I would to it and you let me know if this is what you are doing. I have two machines called disp and svr.
disp's ip 192.168.0.1
svr's ip 192.168.0.2
I start the process on disp.
startx;
run xhost +;
ssh 192.168.0.2;
export DISPLAY=192.168.0.1:0;
xclock
Done.
What Calnago said is also true if you are using ssh you can tunnle it back through the ssh connection. This keeps the data encrypted and more secure. It is the better way of doing it on insecure networks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.