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!

Bad ssh config Cannot login in

Discussion in 'Security' started by Nirjonadda, Dec 11, 2017.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    To avoid SSH timeout issues when connecting from terminal/putty then I have added "ServerAliveInterval 60" to at /etc/ssh/ssh_config. now no more start the SSH server. Also can not login for remove this line. How to remove the line from ssh_config files?

    Code:
    Waiting for “sshd” to start ……Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details. …failed.
    
    Cpanel::Exception::Services::StartError Service Status
    
    Service Error
    (XID cqcfya) The “sshd” service failed to start.
    
    Startup Log
    Dec 12 03:50:43 na.nirjonmela.com systemd[1]: Failed to start OpenSSH server daemon.
    Dec 12 03:50:43 na.nirjonmela.com systemd[1]: Unit sshd.service entered failed state.
    Dec 12 03:50:43 na.nirjonmela.com systemd[1]: sshd.service failed.
    
    Log Messages
    Dec 12 03:50:43 na sshd: /etc/ssh/sshd_config: terminating, 1 bad configuration options
    Dec 12 03:44:04 na sshd[8496]: pam_unix(sshd:session): session opened for user root by (uid=0)
    
    sshd has failed. Contact your system administrator if the service does not automagically recover.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    254
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    Try this

    Code:
    http://$IPADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart
    Replace $IPADDRESS with your server's actual IP address.
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Do this lot of time but this will do reset
    sshd_config files, not ssh_config files. We need fix for files ssh_config.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    42
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have backend console for the server, if you have you can easily login to server and remove the line and restart the server.

    If you have got server from hosting provider you can ask them to do this for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    595
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I have VNC login details but how to work with VNC files edit and save?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,789
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You'd need to check with VNC's support or documentation for help using their application.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. YER Hosting

    YER Hosting Registered

    Joined:
    Mar 12, 2018
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Azerbaijan
    cPanel Access Level:
    DataCenter Provider
    cPanelMichael likes this.
Loading...

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