Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello guys, is it possible to enable X11 forwarding over telnet. I have a few boxes where i can't use ssh so the only way to connect is telnet. I need to export stuff to my linux box (Fedora Core 1). Is it possible or ssh is the only way to forward X11 stuff.
masand, unless I don't understand what you write, I think you're doing things the wrong way.
What does X11 forwarding by SSH means? Answer: this means that X11 communications (remember, X11 is a network protocol) go through the SSH pipe, so that they benefit from encryption. Telnel is not a secure protocol; there's no encryption. So there wouldn't be any benefit from doing forwarding! X11 is already a network protocol. So obviously no, Telnet cannot forward X11. You have to use X11 networking on its normal pipe (which is using a different port than telnet's or ssh's).
Let's say you're on LocalPC, and you want to remotely do stuff on RemotePC. Here's what you do (this will only work if DISPLAY is defined on LocalPC's terminal session):
Code:
LocalPC> echo DISPLAY
:0
LocalPC> xhost +RemotePC
RemotePC added to list of allowed clients.
LocalPC> telnet RemotePC
login: ...
password: ...
RemotePC> export DISPLAY=LocalPC:0
Originally posted by theYinYeti masand, unless I don't understand what you write, I think you're doing things the wrong way.
What does X11 forwarding by SSH means? Answer: this means that X11 communications (remember, X11 is a network protocol) go through the SSH pipe, so that they benefit from encryption. Telnel is not a secure protocol; there's no encryption. So there wouldn't be any benefit from doing forwarding! X11 is already a network protocol. So obviously no, Telnet cannot forward X11. You have to use X11 networking on its normal pipe (which is using a different port than telnet's or ssh's).
Let's say you're on LocalPC, and you want to remotely do stuff on RemotePC. Here's what you do (this will only work if DISPLAY is defined on LocalPC's terminal session):
Code:
LocalPC> echo DISPLAY
:0
LocalPC> xhost +RemotePC
RemotePC added to list of allowed clients.
LocalPC> telnet RemotePC
login: ...
password: ...
RemotePC> export DISPLAY=LocalPC:0
Then do whatever you want.
Yves.
u can see that it the same thing that u r saying(to use the X11 networking)
Yes. Sorry, I didn't want to offence you; I probably wasn't clear enough.
The details I gave were in answer to smkamene's initial question.
The thing I said about your post is something else: The way I understand what you wrote, it seems to me you reversed the two machines (server instead of client, and client instead of server). But then, maybe I simply did not understand. And I'm sure, that between our two posts, smkamene will have his answer.
hi there
pl. correct me if i am wrong here but
don't we need to set the ip address of the target/client machine in trhe DISPLAY environ at server machine,so that all X11 app. are exported to the display environ set, which is that of the cleint machine
i have done this many times and i remember it doing it this way only
Yes, so we agree. Now that you say so, and after re-re-reading your first post, I see you were correct in the first place. The word that lost me was "target", which I understood as the server, whereas you meant the client. After this, I logically understood "client" as the X client side.
Those explanations are difficult because the X server is running on the "network client", and the X clients are running on the "network server"
Have a good day!
u need to run the export DISPLAY command on the machine from where u want to forward ur display
and xhost on ur client machine
i think u r doing it the other way round
myhpuxserver in my example is my machine where i want to forward my display from. It's a hpux box. hqlintest is my example is my Fedora Core 1 box. I ran ps -ax on my Fedora box and saw this:
Code:
8571 ? S 120:14 X :0 -nolisten tcp -br -deferglyphs 16
I wonder if -nolisten has anything to do with my inability to send anything to the screen. ???
Yup, you need to remove the nolisten bit (it'll probably be in something like xserver or something (I can't really remember, and I'm not on a Linux box)).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.