Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 am just launching from camand line but X11 forwarding is enabled on both ends. I tried to run konqueror from command line after logging in with
"ssh -X" and got back:
Xlib: connection to "localhost:10.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
konqueror: cannot connect to X server localhost:10.0
I'm not totally familiar with X11 forwarding thru ssh but from my understanding when you connect with ssh -X and your connected, don't you have to startx first to run any applications ? Is the actual X server or X running when your trying to launch a program ?
well i hadn't really ever started a full x session from ssh or even tried before you're last post. when i did i got
# startx
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to feedback@suse.de.
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
/usr/X11R6/bin/xinit4: unable to connect to X server
/usr/X11R6/bin/xinit4: No such process (errno 3): Server error.
I had a couple redhat boxes a while back and I could do a plain ol' ssh connection and just #konqueror (or anything else)
The error you are seeing is because an X server on your ssh
server is running, and ssh isn't setting the DISPLAY variable
correctly in order to display to your ssh client. This is probably
because you are either not running X on your ssh client, or you
don't have all the options set as above.
hmm..
both configs are setup properly and were from the get go.
both machines are already running X to their own display.
the problem seems to be that it won't let there be two X sessions at once.
All i want to do is run an X app on the host machine from the client.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
ssh into your server (the one running sshd), and type the
following, then post the output:
Code:
printenv DISPLAY
It should be something like:
servername:11.0
where servername is the machine running sshd.
It should not be:
servername:0.0
Setting this yourself will defeat the security of ssh (for X only),
but you could do so.
Also, does the user have a ~/.ssh/config file? If so, are the config
options mentioned above for ssh_config negated?
so the root of all of my problems seems to always be related to some
VARIABLE in capital letters. what is the standard way to check and edit these. thanks alot
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.