Re: Random Disconnects with Direct SSH Connection BUT Not Through Intermediary?!?!
- From: Doug Mitton <doug_mitton@xxxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 14:35:00 -0500
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.
------------------------------------------------
.
- Prev by Date: NIS server delivers no passwords
- Next by Date: Re: Network IP address won't change on Redhat 9!
- Previous by thread: NIS server delivers no passwords
- Next by thread: how can i get more bandwidth?
- Index(es):
Relevant Pages
|