ssh X11 forwarding with Mepis 8.5
I'm having problems forwarding X11 with my test machine I recently successfully (Other than this issue...) upgraded from Mepis 8.0 to 8.5. It was all working fine before the upgrade and I made sure the sshd_config file I was using was maintained but I keep getting cannot open display and/or cannot connect to server messages when I try to start an app remotely. I can ssh onto the box without issues but the forwarding thing has me stumped. I'm not sure if it's a KDE4 issue or something trivial I've overlooked...
|
When you connect via ssh, what does 'echo $DISPLAY' show ?
|
Interestingly enough, it returns nothing! I logged in using ssh -XC user@host and echo $DISPLAY resulted in a blank line followed by my command prompt being displayed again.
|
Just posted this on MepisLovers.
I think I might be onto something... I added -v to an attempt to ssh onto my machine. Amongst the debug was a line that said no xauth program. After a bit of Googling, I found that sshd looks for xauth in /usr/bin/X11/xauth. The thing is, xauth seems to be there... Any thoughts? |
Maybe /etc/ssh/sshd_config no longer has 'X11Forwarding yes' after your upgrade ...
|
It's not that. Here's my sshd_config.
Code:
# $OpenBSD: sshd_config,v 1.38 2001/04/15 21:41:29 deraadt Exp $ |
Interesting ... running strings against mine indicates it looks in /usr/bin :
Code:
# strings /usr/sbin/sshd | grep xauth Quote:
hth |
I now think that it's an issue of ssh not being able to set DISPLAY. Any thoughts on how I can diagnose exactly where the problem lies?
|
Try running sshd with the '-d' flag, this should provide enough output to troubleshoot with
|
I cracked it!!!
After much Googling, I added: Code:
AddressFamily inet I wonder if the need for this is something to do with the kernel upgrade I did as part of the 8.0 to 8.5 upgrade...? |
All times are GMT -5. The time now is 08:04 PM. |