server unexpectedly closed connection

popeye

Well-Known Member
May 23, 2013
368
2
68
Texas
cPanel Access Level
Root Administrator
Hi can anyone please advice what i need to do please, when i login via winSCP or Puttyi i get this error below and the only way to fix it is reboot the server then it all works fine for a few days ?

server unexpectedly closed connection
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Check the following log file after logging in to see if you notice any specific entries at the time of the last failure:

Code:
/var/log/secure
Also, do you have any third-party firewall rules enabled that could be blocking the connection? Does the issue persist when you disable any such firewall rules?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
There is a "Quick Allow" option in the CSF user-interface available in Web Host Manager that you can use to white list your IP address.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
You may want to post directly to the ConfigServer forums for assistance with CSF if you feel it's a separate option in the CSF configuraton that is terminating the connection.

Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,905
467
438
Finland
cPanel Access Level
Root Administrator
If CSF/LFD is blocking your IP you should see in in
/var/log/lfd.log