Solved

X forwarding and ssh

Posted on 1998-06-16
3
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

752 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