The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

server unexpectedly closed connection

Discussion in 'General Discussion' started by popeye, Sep 29, 2013.

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
    #1 popeye, Sep 29, 2013
    Last edited: Sep 29, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,666
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi yes i found it the firewall csf when i turn it off i can login fine,

    I need to add my I.P to the I.P tables but unsure how to.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,666
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Yes done that ages ago, perhaps its something else i need to do.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,666
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  7. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    If CSF/LFD is blocking your IP you should see in in
    /var/log/lfd.log
     
Loading...

Share This Page