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.

SSH weirdness

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

  1. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. anilg

    anilg Member

    Joined:
    Oct 15, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  3. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the reply. I did flush the firewall but it did not help the client. We are using CSF.
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    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:
    141
    Likes Received:
    0
    Trophy Points:
    16
    That is not it. I already stated in my original post that I can connect fine. Thanks for the reply though.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
Loading...

Share This Page