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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bad ssh config Cannot login in

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

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    524
    Likes Received:
    14
    Trophy Points:
    18
    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.
     
  2. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    253
    Likes Received:
    0
    Trophy Points:
    66
    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:
    524
    Likes Received:
    14
    Trophy Points:
    18
    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.
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    41
    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.
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    524
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have VNC login details but how to work with VNC files edit and save?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    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.
     
Loading...

Share This Page