Re: Random Disconnects with Direct SSH Connection BUT Not Through Intermediary?!?!



Doug Mitton <doug_mitton@xxxxxxxxxxxxx> wrote:

When I'm at work I maintain an ssh connection from my work Win2K
machine to my Linux home machine. I use this to backup work data and
to access my email. Ever since I got the work DSL account to do this
I get random disconnects (Putty reports:Network error: software caused
connection abort) after any where from 5min to 60 min, lately it is
typically closer to 5 min. BUT, if I connect from work to an
intermediate host then to my home system it will maintain the
connection for a whole day. I always disconnect at the end of the
day. I've tried another free MSWin ssh client (www.ssh.com) and it
behaves the same way.

(snipped)

Any pointers, opinions, links or solutions would be appreciated. :-)

Well, I have finally managed to resolve this issue.

The main problem is the "poor" quality of my DSL connection BUT to
work around it I had to do the following:

1) My firewall rules. Due to the constant attacks on my ssh server I
added rules to only allow 3 connection attempts per minute. When DSL
was bad this was being exceeded and disconnecting me. To resolve I
moved my ssh server to an alternate port with much more reasonable
(connection attempt rate) firewall rules.

I still run my server on the standard port as well BUT severely
restricted access with firewall rules ... just to keep the script
kiddies entertained.

2) My sshd server. While I was using KeepAlive in both my client and
server configurations I WAS NOT using ClientAliveInterval in my
sshd_config file, so the connection was timing out VERY quickly during
my "poor" DSL performance times.

Hopefully, some else may find this information useful.
--
------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove "x." from my domain.
------------------------------------------------
.



Relevant Pages

  • Re: Simultaneous DSL and cable modem access on a SBS network...sorf ot.
    ... Your existing router would be surplus to requirements. ... Cable connection. ... I have my MX records pointing to the DSL line, ... The server and the fax (the line the DSL modem ...
    (microsoft.public.windows.server.sbs)
  • Re: Simultaneous DSL and cable modem access on a SBS network...sorf ot.
    ... Your existing router would be surplus to requirements. ... Cable connection. ... I have my MX records pointing to the DSL line, as primary, ... The server and the fax (the line the DSL modem ...
    (microsoft.public.windows.server.sbs)
  • Re: OWA slow from outside on SBS 2K3
    ... you did not indicate the connection on the remote end. ... DSL can be touchy, ... > but there's no additional load on the network or server. ... > broadband modem and two other clients. ...
    (microsoft.public.windows.server.sbs)
  • Re: UNC path versus mapped drives
    ... Any DHCP server running? ... > All of the users connect to a D-Link smartswitch DSS 8 or 12? ... The DSL modem is a Westell 2200 I think. ... track in speculating that the share problem is due to connection glitches. ...
    (microsoft.public.win2000.networking)
  • 0x80042109 sending error
    ... He does not see him getting to the server ... He is receiving emails fine still, ... >I had him disable the firewall on his LAN connection, ... >his laptop to the DSL modem. ...
    (microsoft.public.outlook.general)