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 use one remote machine which I want to be connected to.
I use putty to connect to it and it works if I specify DISPLAY variable
export DISPLAY=my_ip_address:0.0
but if I use my linux desktop to connect to remote machine (ssh -X ...) this way of specifying DISPLAY variable does not work anymore, BUT if I define DISPLAY as follows
export DISPLAY=localhost:13.0
it works!
What is the difference? Why it happens? (the remote machine is same in both cases)
well the X tunneling over ssh should be set up automatic, and i'm not sure why you're having to set that like you are, but the difference is the tunneling itself. you can run the first type under ssh and it *should* work, no reason why not if it does on putty. what if you DON'T do X tunneling?
well the X tunneling over ssh should be set up automatic, and i'm not sure why you're having to set that like you are, but the difference is the tunneling itself. you can run the first type under ssh and it *should* work, no reason why not if it does on putty. what if you DON'T do X tunneling?
Yes, that's true. If I use ssh -X ... it sets up $DISPLAY automatically but it's not the case with putty where after connection is established $DISPLAY is empty so I need to define it. If I define it as localhost:13.0 it does not work for putty but works for ssh -X in linux
well yes, again that is X forwarding over ssh. putty doesn't do this at all. you setting $DISPLAY in putty is the same as being local to the box and setting it, making X clients connect to any arbitrary server, it's nothing to do with ssh at all. With ssh -X it is, and the X connections are *inside* the ssh tcp connection across the network.
well yes, again that is X forwarding over ssh. putty doesn't do this at all. you setting $DISPLAY in putty is the same as being local to the box and setting it, making X clients connect to any arbitrary server, it's nothing to do with ssh at all. With ssh -X it is, and the X connections are *inside* the ssh tcp connection across the network.
Yes, it makes sense. Although I do X11 forwarding in putty v0.60 it works perfectly without it! So it seems that this option does not do anything, and it's not equivalent to -X option in ssh as I though before. Putty just doesn't do what it's supposed to, meaning does not do X11 over ssh with X11 forwarding option checked. That's intresting! Will play with it again...
Thanks for helping me to understand that!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.