Hi All, I noticed of late my ssh & sftp connections have been timing out very quickly. If I leave my machine (or do not use the ssh connection) for even 10 minutes the connection will timeout and I will have to close the window and re-connect.
I am unsure whether the problem exists with my local machine or my university's servers (the machines to which I am remotely logging onto).
I have the following modules installed (and versions) on my machine:
openssh-askpass-4.3p2-19.fc6 openssh-clients-4.3p2-19.fc6 openssh-server-4.3p2-19.fc6 openssh-4.3p2-19.fc6
While my university is running the following versions:
fuse-sshfs-1.7-1.fc4 openssh-server-4.2p1-fc4.10 openssh-askpass-4.2p1-fc4.10 openssh-4.2p1-fc4.10 openssh-askpass-gnome-4.2p1-fc4.10 openssh-clients-4.2p1-fc4.10
Was wondering if anyone could possibly shed some light on this or provide some sort of explanation?
Thanks for your assistance.
Cheers, Tony Crouch
On Wed, 2007-04-25 at 12:23 +1000, Tony Crouch wrote:
I noticed of late my ssh & sftp connections have been timing out very quickly. If I leave my machine (or do not use the ssh connection) for even 10 minutes the connection will timeout and I will have to close the window and re-connect.
I am unsure whether the problem exists with my local machine or my university's servers (the machines to which I am remotely logging onto).
I have the following modules installed (and versions) on my machine:
openssh-askpass-4.3p2-19.fc6 openssh-clients-4.3p2-19.fc6 openssh-server-4.3p2-19.fc6 openssh-4.3p2-19.fc6
I have the following on my FC6 box, and haven't noticed problems like you mention when sshing to other boxes.
$ rpm -qa *openssh* openssh-askpass-4.3p2-19.fc6 openssh-clients-4.3p2-19.fc6 openssh-server-4.3p2-19.fc6 openssh-4.3p2-19.fc6
e.g. A local server I ssh to has:
$ rpm -qa *openssh* openssh-4.2p1-fc4.10 openssh-server-4.2p1-fc4.10 openssh-clients-4.2p1-fc4.10 openssh-askpass-4.2p1-fc4.10 openssh-askpass-gnome-4.2p1-fc4.10
You might ask if your uni has a timeout policy.
Incidentally, if someone can tell me why "rpm -qa openssh-*" doesn't return "openssh-4.3p2-19.fc6" in the list, but "rpm -qa openssh*" does, I'd like to know.
On Wed, 25 Apr 2007 12:23:55 +1000 Tony Crouch acrouch2@une.edu.au wrote:
Hi All, I noticed of late my ssh & sftp connections have been timing out very quickly. If I leave my machine (or do not use the ssh connection) for even 10 minutes the connection will timeout and I will have to close the window and re-connect.
Sounds like some kind of NAT or connection tracking firewall between your two end points which has been set up with poorly chosen timeouts on those ports.
Alan
On Wed, 25 Apr 2007, Tony Crouch wrote:
Hi All, I noticed of late my ssh & sftp connections have been timing out very quickly. If I leave my machine (or do not use the ssh connection) for even 10 minutes the connection will timeout and I will have to close the window and re-connect.
I am unsure whether the problem exists with my local machine or my university's servers (the machines to which I am remotely logging onto). ...
Was wondering if anyone could possibly shed some light on this or provide some sort of explanation?
Not an explanation, but maybe a workaround. How about setting the keepalive interval?
ssh -o ServerAliveInterval=120 my.ssh.host
will send keepalive signals every 120 seconds if the connection is idle. You can also include the option in ~/.ssh/config.
Thanks for your assistance.
Cheers, Tony Crouch