ssh with X forwarding

When I ssh to my solaris 10 6/06 PC forwarding X as well I observe the following:

root@hostname> ssh -X root@solarisPC

root@solarisPC> xterm &

then when if a press any key on the xterm window just opened

ssh closes connection. The same happens not only with xterm

but with any applications like emacs, xemacs e.t.c.

Is there something I am doing wrong? I have also noticed

that the ssh connection will be soon reseted by peer. The same

happens to the vnc session. If I start a vnc server on solarisPC

then it will be soon, after more or less 10-15 minutes, closed.

What could be wrong here?

Thanks ...

[684 byte] By [stimenia] at [2007-11-26 9:23:39]
# 1
I don't see anything wrong with your commands.My first assumption is that there is some sort of firewall or device between the two that is dropping connections. Is that possible?-- Darren
Darren_Dunham at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

No. Because if there was any sort of firewall then I wouldn't

be able to connect at all. SSH port is closed when there is

a firewall. In my case It gets connected but it ony lasts for 10 minutes

more or less. The question is : Is there any special tweak or

option in sshd_config which controls the how long an ssh

session will be open which by default is tweaked in a small

value?

stimenia at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

> No. Because if there was any sort of firewall then I

> wouldn't

> be able to connect at all. SSH port is closed when

> there is

> a firewall.

That's certainly not true. A firewall or NAT device may allow particular ports (such as SSH). Connection with SSH is not evidence against them.

Both Firewalls and NAT devices may maintain an active connection only for a particular period of time. 10 minutes would be extremely short, but not unheard of.

> In my case It gets connected but it ony

> lasts for 10 minutes

> more or less. The question is : Is there any special

> tweak or

> option in sshd_config which controls the how long an

> ssh

> session will be open which by default is tweaked in

> a small

> alue?

No. By default, neither SSH nor Solaris limit the period of time for connections.

--

Darren

Darren_Dunham at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
I've also seen MTU problems with certain firewalls, where the client/server had larger MTU types specified than the firewall can handle, and hence caused odd disconnects. 7/M.
mAbrante at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
I am getting strange disconnects now when connecting with a box back at my old campus. The place I am at now has a pretty aggressive firewall (NAT too) so I can only assume that is what is suddenly causing my drops.
kjard_us at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
Add the following to your /etc/ssh/sshd_config fileClientAliveInterval 60KeepAlive yesin your /etc/ssh/ssh_configrestart the sshd daemon and try
SharifRizal at 2007-7-6 23:58:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...