SSH times out - "Server unexpectedly closed network connection"

David Kelly dkelly at hiwaay.net
Wed Aug 31 19:53:34 GMT 2005


On Wed, Aug 31, 2005 at 03:33:27PM -0400, Robert G. wrote:
> SSH doesn't appear to be working on my remote server. I can connect 
> fine, and am prompted with "login as: " with Putty, but when I enter my 
> username it sits and hangs there for about a minute before a message 
> comes up that says "Server unexpectedly closed network connection". SSH 
> was working fine this morning around 11am. I just got back and now it's 
> hanging. The only changes to the /etc/ssh/sshd_config that I made were 
> to add my one user account. I rebooted and it worked fine this morning, 
> so I don't know what the problem is now as I haven't touched it.
> 
> Any ideas?

DNS. Sshd is not finding you in DNS before it gives up. Change "UseDNS"
in /etc/ssh/sshd_config to "no" from "yes", restart sshd, and my guess
is your problem will disappear.

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list