Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Default SSH Connection Error

    I'm not certain if this is an issue related to WHM or not... but I believe it is.

    I'm running a dedicated server. Centos 5.5 with the latest WHM/Cpanel distro.

    I log on using putty from several different connections. The main is from my office. Until yesterday, I had no issues.

    However, as of today I cannot connect through comcast to my server using Putty! I have verified it isn't a network configuration issue by disabling Comcast; at that point, my watchguard device fails over to an alternate connection, and I CAN connect using the alternate connection.

    I'm on a dedicated IP here at the office. Does WHM have any type of security feature which might be blocking connections from my IP? What might I be doing wrong?

    I have even tried using zaTelnet on my iPhone. When my iPhone is on 3g, I can connect. When I use WiFi, I cannot.

    Your help is appreciated!

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Default Re: SSH Connection Error

    I just verified that I can access a friend's server through my primary connection.

    Does WHM have any type of system to lock out IP's?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSH Connection Error

    Yes, cPHulk Brute Force Protection can lock out a select user from accessing a machine. Additionally, if you are using CSF (WHM > Manage Plugins > ConfigServer Security & Firewall), it could lock out your IP or connection, although we do not provide CSF ourselves.

    Depending on which handled the block, you can whitelist your IP so it doesn't get blocked again in both of them.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: SSH Connection Error

    also you would need to add in csf.ignore

    csf.ignore - a list of IP's and CIDR addresses that lfd should ignore and not block if detected

  5. #5
    Member
    Join Date
    Feb 2011
    Posts
    8

    Default Re: SSH Connection Error

    to better clarify the issue, try running a tracert to the server, apparently seems to be IP blockage..

  6. #6
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Default Re: SSH Connection Error

    Quote Originally Posted by cPanelTristan View Post
    Yes, cPHulk Brute Force Protection can lock out a select user from accessing a machine. Additionally, if you are using CSF (WHM > Manage Plugins > ConfigServer Security & Firewall), it could lock out your IP or connection, although we do not provide CSF ourselves.

    Depending on which handled the block, you can whitelist your IP so it doesn't get blocked again in both of them.
    cPanelTristan, I was unaware of cPHulk Brute Force Protection. I enabled it and whitelisted my IP but I still can't get in (just so I don't look too dumb, I wasn't expecting that enabling it would let me in) through my main connection. I am currently not using CSF. Any other ideas?
    Quote Originally Posted by crazyaboutlinux View Post
    also you would need to add in csf.ignore

    csf.ignore - a list of IP's and CIDR addresses that lfd should ignore and not block if detected
    Thanks for the reply. I wish CSF was the problem.

    Quote Originally Posted by AunRaza View Post
    to better clarify the issue, try running a tracert to the server, apparently seems to be IP blockage..
    AunRaza, I am able to log into the WHM manager and view all websites at the IP. Is it possible to run a tracert to a specific port? The tracert terminated to the domain successfully.

    edit - I also tried using IP addresses, not just domains.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: SSH Connection Error

    The only other area I can think of would be Host Access Control if you don't have a firewall mechanism to automatically block your SSH connections. WHM > Host Access Control can allow and deny set IP addresses, but that's a long shot since it wouldn't have allowed your other IP unless it had been previously whitelisted.

    I believe the best bet now is to contact your hosting provider to have them check into it to see if they can determine why you cannot connect to SSH.

    Another idea just in case somehow it is the firewall, you can try to SSH in on the other system you have that does work, then try to check for your IP to see if it is listed in iptables:

    Code:
    /sbin/iptables -n -L | grep IP#
    Please replace IP# with the IP number that isn't working to SSH to the machine.

    If you have a provider that allows changing your main IP on your local system, you could simply try to get a new IP on that system if that might be faster than trying to troubleshoot what's going on. Oftentimes, you can force a new IP via your network settings. If you aren't certain how to get a new IP that way, your ISP should be able to help you in getting a new IP. I'm simply mentioning this as another viable possibility to get things going again for you.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Unable to SSH into server - Network Error: Connection refused
    By slinky in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-18-2011, 05:19 AM
  2. Exim error " closed connection in response to initial connection"
    By senthil0787 in forum E-mail Discussions
    Replies: 2
    Last Post: 08-16-2009, 01:56 PM
  3. "Remote scp sent illegal error code" and slow SSH connection
    By Brook in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-18-2009, 08:22 PM
  4. The - SSH Connection Window - in cPanel. Is this secure?
    By jols in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-13-2009, 10:32 AM
  5. Server rejects http/https/ssh/ftp connection. Linux/Apache.
    By gk4p in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-14-2005, 07:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube