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.

Help /etc/ssh/sshd_config was gone

Discussion in 'General Discussion' started by natong, Sep 7, 2011.

  1. natong

    natong Well-Known Member

    Joined:
    May 17, 2008
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    Folder /etc/ssh/ was gone.

    Anyone know where is a new config folder of SSHD ?
     
  2. 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
    The files are normally these in that location:

    11.2. An OpenSSH Configuration

    Do you have access to another server to grab example files? If not, you would want to ask your datacenter, NOC or provider for assistance to have them obtain the necessary files.
     
  3. natong

    natong Well-Known Member

    Joined:
    May 17, 2008
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    WHM 11.30.2 (build 1)
    CENTOS 5.6 i686 virtuozzo on host


    When I tried to Restarting SSH Daemon, it's ok.
    Code:
    Waiting for sshd to restart...............finished.
    
    sshd (sshd: thumbnow [priv]) running as root with PID 11511
    
    sshd started ok
    

    How to reinstall SSHD? I couldn't find it in "Main >> Software >> Install a RPM".
     
  4. 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
    This entire issue should be taken up with your datacenter, NOC or provider, since it is a system level issue.

    Normally, sshd is located at /usr/sbin/sshd location as a binary file. Also, here's a discussion on sshd installation:

    CentOS SSH Installation And Configuration

    I simply used these search terms on google "reinstall sshd centos" which shows this return:

    Using Google Search

    We cannot advise installation and reinstallation for openssh, since it might end up causing the server to no longer allow SSH at all. It should be taken up with your provider.

    Of note, you can see which openssh rpms are on your machine with this command:

    Code:
    rpm -qa | grep -i ssh
    On my machine, this returns the following:

    Code:
    root@host [~]# rpm -qa | grep -i ssh
    openssh-4.3p2-72.el5_6.3
    openssh-server-4.3p2-72.el5_6.3
    openssh-clients-4.3p2-72.el5_6.3
     
Loading...

Share This Page