Operating System - HP-UX
1837277 Members
3021 Online
110115 Solutions
New Discussion

ssh -X only tunneling one connection

 
Chris Kosanovich
Occasional Advisor

ssh -X only tunneling one connection

Here is a kind of strange problem that i have run into.

I recently set up a new LDAP server and have been changing a lot of stuff on the network and somewhere along the way sshd got broken. Originally it wasn't letting anyone ssh in except root and i found that the problem was because i had lanman_auth = no but i fixed that (and in fact put CIFS on instead so that problem doesn't exist any more) but now if i try to ssh -X then it will log me and and tunnel the X display fine, but if i open another term or someone else tries the same thing then it will return and say "connection to closed by remote host" and it won't let me log in at all.

I was wondering if there is a configuration file somewhere that got set to tunnel only one display or if anyone can divine what could be the problem here.

Thanks for your help in advance (and i will be sure to post points for any help!)

-Chris Kosanovich
3 REPLIES 3
Mike Hassell
Respected Contributor

Re: ssh -X only tunneling one connection

Chris,

As far as I know there isn't a configuration paramater that would be limiting you from opening a second term when tunneling with ssh.

What version of ssh are you running, both client and server? Also what does output look like from:

ssh -v -X

I would also recommend using -C option (Compression yes in the config file), when tunneling X sessions as they tend to eat up bandwidth.

Unforunately, I only have a little bit of experience with ssh tunneling, but I'm sure someone can shed some more light on your problem.

Hope that helps.

-Mike
The network is the computer, yeah I stole it from Sun, so what?
Chris Kosanovich
Occasional Advisor

Re: ssh -X only tunneling one connection

Actually i was using 3.1p1 but i just compiled 3.4 and it seems to be working, but i am pretty sure that it's not the version because a few machines that i didn't set up on LDAP are still on 3.1 and they work fine with the X display so there is something that got changed or corrupted. In any case it's no longer urgent since i will just spend the next little while upgrading ssh to 3.4 on all the machines but if anyone can shed some light on what could have caused this that would be great.

Thanks.
-Chris
Phil Smith
Occasional Advisor

Re: ssh -X only tunneling one connection

I would check the sshd_config file on the target host and make sure you have X11Forwarding yes
X11DisplayOffset 10

When you connect what is your display set to?
I assume you are running an xterm. Can you create another xterm from your existing session?

For the other new sessions can we have some debug output from both the client and the server.

Regards

Phil.