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
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users