Help /etc/ssh/sshd_config was gone

natong

Well-Known Member
May 17, 2008
89
1
58
Folder /etc/ssh/ was gone.

Anyone know where is a new config folder of SSHD ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
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.
 

natong

Well-Known Member
May 17, 2008
89
1
58
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".
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
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