Solved

X forwarding and ssh

Posted on 1998-06-16
3
295 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to backup and restore the DHCP configuration on Solaris 9 7 41
llcommand 6 87
AIX    Volume group Auto ON/OFF question 2 89
aix unix tar error 3 40
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now