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.

Cannot SSH into go daddy server

Discussion in 'General Discussion' started by oldlock, Dec 29, 2011.

  1. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    I'm going slowly mad. I cannot ssh into two godaddy servers. I'm trying with root (which is enabled) and also with individual user accounts which are in the wheel group and have full shell access. The root password and user passwords are being accepted in WHM no problem so I know they are good.

    The faillog file just says NULL NULL etc

    Godaddy's legendary support is as much use as a chocolate teapot they say they can login fine.

    All I get is Access Denied ........

    Any suggestions for diagnosis and fix appreciated !
     
  2. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Had the same problem. You have to log in with the user password and then su for root.
     
  3. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    As I said - neither user accounts or root are working. Root access is enabled in sshd.conf
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    How about PasswordAuthentication?
     
  5. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    password auth is enabled. I have tried ssh keys too. Ssh keys result in 'the server refused our key'
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Unfortunately, there is not much more you can check for without root access via SSH. You will need to consult with your hosting provider to have them check why "root" access via SSH is not working properly.

    Thank you.
     
  7. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Are you using PuTTY?
    If yes, then what does the PuTTY log say? = Do a Ctrl + Right Click >> Event Log in the PuTTY Window.
     
  8. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    I do have some access via the configserver explorer plugin via WHM. Yes I am using putty, here's the log :

    putty1.PNG
     
  9. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    I found this in the secure log :

    30 03:08:14 ip-XX-XX-XXX-XXX sshd[3864]: pam_unix(sshd:auth): auth could not identify password for [root]
    Dec 30 03:08:14 ip-XX-XX-XXX-XXX sshd[3864]: error: ssh_msg_send: write

    Also entries that suggest that my IP is listed in DenyUsers ? but I can still access WHM so it's my firewall ??
     
  10. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    /etc/ssh/sshd_config

    /etc/securetty

    What do these file show?
     
  11. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    sshd

    --

    secutetty :

    --

    console
    vc/1
    vc/2
    vc/3
    vc/4
    vc/5
    vc/6
    vc/7
    vc/8
    vc/9
    vc/10
    vc/11
    tty1
    tty2
    tty3
    tty4
    tty5
    tty6
    tty7
    tty8
    tty9
    tty10
    tty11

    Thanks

    Paul
     
  12. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    OK. I commented out the deny users and deny groups entries and now I'm able to get it. The question I don't have an answer for is just when those entries slipped in ...
     
  13. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    hmmmmmmmmmmmmmmmmm....

    atleast its solved.

    :)

    Do post here if you found anything fishy.
     
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What precisely is deny users and deny groups? Please provide the file that was listing your IP.

    Now, since I believe you might mean csf.deny file at /etc/csf location. If you do mean CSF did it, this wouldn't be a cPanel product but that of another company (ConfigServer Security & Firewall). For entries added to /etc/csf/csf.deny, CSF logs to /var/log/lfd.log for LFD brute force detection entries. You should be able to find your IP in that file or in the archive of it if the log has been archived:

    Code:
    grep IP# /var/log/lfd.log*
     
  15. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    There were these lines in his sshd_config file (post #11):
    Code:
    DenyUsers root
    DenyGroups root
    
     
  16. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I see. Those lines are not part of the default /etc/ssh/sshd_config file, so someone would have had to manually add them.
     
  17. Craig Buxton

    Craig Buxton Registered

    Joined:
    Feb 8, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    GoDaddy's Virtual Dedicated server (and maybe some of there others) doesn't allow you to connect as "root". I kept getting "access denied." Instead of using root to connect via SSH, you must use cPanel to create another user, then add that user to the "manage wheel" so that the new user will have su access. Then connect using SSH client and new username.
     
Loading...

Share This Page