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.
If you enabled X11forwarding in the configuration file, you don't need the -X option. Also you have not to set DISPLAY and XAUTHORITY upon connection, since it should be done automatically for you. Try to connect with no option, then verify the DISPLAY variable and try to launch a light X application, for example:
I think that you still need the -X option if you mean that you allowed X11forwarding in /etc/ssh/sshd_config on the server. Don't use the DISPLAY=":0.0" line. Ssh will set it to someting like "localhost:10.0".
The X server doesn't need to be running on the ssh server. Certain components may need to be installed however if the clients need it. You can have the server running in init level 3 however (debian, Ubuntu & slackware may use run level 1).
How are you trying to launch the program.
ssh -X user@host /path/to/program
should work OK. You will need port 22 open on the server and X11 forwarding enabled in /etc/ssh/sshd_config. If the client is running windows, you can install Cygwin/X and have an X server running on the client.
X is a bit different in that the X server runs on the client. The X client is the program that is running on the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.