[JSch-users] Problems with X-Forwarding Example
Status: Alpha
Brought to you by:
ymnk
From: Maria <the...@gm...> - 2011-07-15 20:35:23
|
Hi, I am running into some problems with the X11Forwarding example included in Jsch. Here are the details: - Jsch 0.1.44 running on an Ubuntu 11.04 PC and also on a Mac Os X 1.6.8 laptop. - When using Jsch on Ubuntu to do a localhost ssh, I get the infamous message: "Error: Can't open display: localhost:10.0" - I get the same error if I try using Jsch from the Mac to connect to the Ubuntu PC If I use the command line, 'ssh -X localhost' or ('ssh -X hostname' from the Mac), everything works fine. I've seen old posts about this but none of them ever reported a solution that works. Here's what I've tried (unsuccessfully) - type 'xhost' in the terminal - type 'xhost +127.0.0.1' in the terminal - edit my /etc/hosts to include '127.0.0.1 localhost' - sshd_config has the following two lines: X11Forwarding yes X11DisplayOffset 10 -ssh_config has: ForwardX11 yes Any clues and suggestions will be greatly appreciated. I'd love to get this up and working and put the problem to rest. Thanks in advance! m |