Solved

X forwarding and ssh

Posted on 1998-06-16
3
297 Views
Last Modified: 2010-04-21
How would I go about forwarding an X11 program to an arbitrary host while using ssh?  

Here's an example:
Bob sshs into host#1(172.17.1.97).   I'm on host#2 and I want to send a display to him.  So I type xterm -display 172.17.1.97:0.0

It works fine if he simply telnets to host#1 but not if he uses ssh.  We must use ssh because some people will be connecting though a proxy into our internal LAN.

The error message I get is:
X11 connection rejected because of wrong authentication.

I'm assuming this error comes from the fact that I don't have the authority to use his X11 forwarding that ssh has automatically set up.  Is there any way to get around this?  With his approval of course.

-Mark
0
Comment
Question by:markhorton
  • 2
3 Comments
 
LVL 5

Expert Comment

by:n0thing
ID: 2008078
Hi,

   I don't know where the ssh config file is on that system. But it is usually under /etc/sshd_config.
Check for the line :
"X11Forwarding no"
change it to "X11Forwarding yes" and restart the sshd deamon.
You will need root in order to do this.

Regards,
Minh Lai

0
 

Author Comment

by:markhorton
ID: 2008079
The problem is that I am not doing X11 forwarding to myself.  The X11 forwarding to myself works correctly.  I am trying to start an X application and forward it to someone else's screen.

-Mark
0
 
LVL 5

Accepted Solution

by:
n0thing earned 500 total points
ID: 2008080
Sorry, I misunderstand the question. Try to recompile the deamon, make sure that the program "xauth" is in your path when you compile it. DO a find /usr -name xauth -print to see where it is and add the path to your current path. Reconfigure ssh and rebuild it.

Regards,
Minh Lai
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question