Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SSH weirdness

Discussion in 'General Discussion' started by brianc, Oct 17, 2008.

  1. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    168
    I have a client who is having problems logging into ssh. We have password authentication turned off so he is using a public/private keypair. He can make contact with the server but as soon as he enters in his passphrase, the server disconnects him.

    I have been able to connect fine using his private key and passphrase. I also verified that the firewall is not blocking his IP address.

    Does anyone else have a suggestion in troubleshooting this perplexing problem?

    Thanks for any help.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. anilg

    anilg Member

    Joined:
    Oct 15, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    india
    once please flush the firewall and try out it.
    note:- before you flush firewall take backup of /etc/sysconfig/ files.

    i hope it'll work.

    do i know which firewall you are using. csf/apf/iptables
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    168
    Thanks for the reply. I did flush the firewall but it did not help the client. We are using CSF.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,659
    Likes Received:
    76
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Check the ownership and permissions of /home/user.

    It should have an ownership and group of user.

    It should have permissions of 0711.
     
  5. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    168
    That is not it. I already stated in my original post that I can connect fine. Thanks for the reply though.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,561
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Enable verbose or debug logging in sshd_config, start the sshd daemon on the console (in other words, don't background the process or use the init script to start the daemon) and have him connect. That might pinpoint the problem.

    Depending upon the ssh client your customer is using, have him enable debug/verbose output in the client for extra help.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice