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.
On remote
Edit /etc/sshd/sshd_config
Set "X11Forwarding yes"
Restart sshd.
On local
ssh -Y user@remote
xfig
Small point, on Debian, it is " ForwardX11 yes"
Second part did not work:
Code:
Server:~# export DISPLAY=xx.xx.xx.xx:0
Server:~# gedit&
Server:~# cannot open display:
Run 'gedit --help' to see a full list of available command line options.
[2]+ Exit 1 gedit
Server:~# gedit display=xx.xx.xx.xx:0
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
It is a problem with authentication on the X manager. In this case, GDM.
If I use the no authentication option ( "-ac" ) on X, it works. But that is a security hole.
How is different on Debian to anything else? It's not something that should be Debian specific; it's sshd.
Quote:
Originally Posted by MrUmunhum
Second part did not work:
This is what I said:
Code:
# ssh -Y user@remote
# xfig
This is what you say you did:
Code:
# export DISPLAY=xx.xx.xx.xx:0
# gedit&
They are different and so are unlikely to produce the same result. The whole point being that ssh -Y *sets* your display and it sets it to localhost:10.0 which is necessary for X11 forwarding to work. Instead you have overwritten the DISPLAY variable with a direct connection back to the X server which obviously is not going to work.
Quote:
Originally Posted by MrUmunhum
It is a problem with authentication on the X manager. In this case, GDM.
I think you may be confused. AFAIK GDM is just starting X with whatever options it has been told to, including for example whether to set -ac, it doesn't handle authentication to X.
Quote:
Originally Posted by MrUmunhum
If I use the no authentication option ( "-ac" ) on X, it works. But that is a security hole.
Still, the problem seems that you are not using SSH X Forwarding, you are simply connecting with SSH and trying to connect back to X with a direct connection that has been explicitly disallowed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.