Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Aug 2010
    Posts
    65

    Default Could someone post cpanel sshd_config?

    Hello,
    could someone post a non modified current sshd_config file of cpanel? I have edited my file and haven't made a backup...
    Thanks.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by khorinis View Post
    Hello,
    could someone post a non modified current sshd_config file of cpanel? I have edited my file and haven't made a backup...
    Thanks.
    If I were you, I would run the script below and then make the changes again.

    http://yourdomain.com:2086/scripts2/...safesshrestart

    Replace yourdomain.com with your server's IP or resolved hostname off course.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    Member
    Join Date
    Aug 2010
    Posts
    65

    Default

    Quote Originally Posted by JawadArshad View Post
    If I were you, I would run the script below and then make the changes again.

    http://yourdomain.com:2086/scripts2/...safesshrestart

    Replace yourdomain.com with your server's IP or resolved hostname off course.
    Does it would replace it with a standard file?

    //Edit:
    SSH Server...

    Waiting for sshd to restart..............finished.


    sshd has failed, please contact the sysadmin.

    ...Done
    Last edited by khorinis; 08-27-2010 at 03:19 PM.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by khorinis View Post
    Does it would replace it with a standard file?

    //Edit: Seems not to work.
    Depends on how extensively you have tweaked sshd_config. It normally resets SSH port from any other to default 22.
    If you have access to console, check /etc/ssh/ folder for a file named sshd_config.rpmnew or similar. This should be the default file. Copy it into sshd_config and you should be good to go after a service restart. If this doesn't work, you can re-install ssh via yum after renaming the current config file.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  5. #5
    Member
    Join Date
    Aug 2010
    Posts
    65

    Default

    SSH restarted now and i just needed to find out which line the missconfiguration was with "/etc/init.d/sshd restart" and then i fixed the wrong line: it's now running fine again. Thanks.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by khorinis View Post
    SSH restarted now and i just needed to find out which line the missconfiguration was with "/etc/init.d/sshd restart" and then i fixed the wrong line: it's now running fine again. Thanks.
    Glad things are working now. Redundancy is the way to go when you are dealing with sensitive files.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 07-12-2011, 01:31 AM
  2. Basic sshd_config options in WHM
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 01-23-2010, 03:06 AM
  3. Replies: 4
    Last Post: 12-10-2009, 02:43 PM
  4. Is this correct in my sshd_config
    By screege in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-13-2009, 01:58 PM
  5. Error in sshd_config and cannot edit file
    By MrL22 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-27-2004, 01:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube