FedoraThis forum is for the discussion of the Fedora Project.
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.
I used ssh -X root@IP where "IP" is the ip address of my FC3 machine.
When i tried to open xemacs or things like that, i got this error message:
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known X server not responding: "localhost:10.0"
If after login I do "echo $DISPLAY", it shows me "localhost:10.0".
I also tried "setenv DISPLAY" to $HOST's value, then I got this:
"X server not responding"
My local system is Debian where I am just a normal user, but I don't
think this is the reason. I could use "ssh -X" to a remote UNIX machine
and open up X successfully. So what shall I do in the FC3 machine?
and how does one automatically get the display to the clien m/c ( client in the noraml sense) without giving the client ip address to the linux server ( server in the noraml sense, not x server )m/c.
I used ssh -X root@IP where "IP" is the ip address of my FC3 machine.
When i tried to open xemacs or things like that, i got this error message:
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known X server not responding: "localhost:10.0"
There might be some settings somewhere that makes it hard to do X forwarding for root. I don't remember. Do you really need to log in as root? Also, try using "-Y" instead of "-X" because many things don't work with "-X".
Quote:
Originally Posted by narender@saineni.net
and what is this 6010
and server id 10
X uses port 6000 + display number, so display 10 would be on port 6010. X has multiple displays.
Quote:
Originally Posted by narender@saineni.net
and how does one automatically get the display to the clien m/c ( client in the noraml sense) without giving the client ip address to the linux server ( server in the noraml sense, not x server )m/c.
When you tell SSH to do X forwarding, it makes a new X display on the remote computer and listens on that port (port 6010 in this case) and then forwards the port (tunnelled through the SSH connection) to the local DISPLAY port. So the remote machine doesn't "know" the local machine's IP at all, SSH just forwards all the information through the connection.
Sorry, I didn't notied it.
Parv:
You should NEVER EVER login as root.
You should REALY REALY use sudo(1) or su(1) when you need to run one command whith root priv:s
Might be that ssh(1) is doing the right thing and don't let you use X11 over ssh as root. It's becouse it has some potetial risk of local cracking and through your computer taking controll over the other computer as you.
Not very nice, any way. Havent got time to check out what is the problem though.
So please set up sudo and use that, so wi dont end up as MS Windows with lots of cracked and zommbied linux boxes...
You should not have to explicitly set DISPLAY after an 'ssh -X'
I had the same problem on one machine and the problem was that /etc/hosts was corrupted. make sure you have the line:
127.0.0.1 localhost.localdomain localhost
also if you are using DNS/LDAP/NIS/YP etc. to resolve hosts make sure that "files" still appears 1st in the list of hosts in /etc/nsswitch.conf.
Also check that /etc/ssh/sshd.conf allows X11 tunneling/forwarding.
You also need the xauth command on your server (and client). If not, sshd at the server (and ssh command) will not be able to transfer and set X11 security token (X11 server "password") to your real X11-server to the "virtual" X11-server on you server. And then X11 will not allow you to connect to your real X11-server from your server, becouse it doesnt have right X11 security token.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.