error: rexec of /usr/sbin/sshd failed: No such file or directory

Operating System & Version
CENTOS 6.10 virtuozzo
cPanel & WHM Version
v86.0.25

cbielich

Registered
Dec 26, 2016
3
0
1
Las Vegas
cPanel Access Level
Root Administrator
I recently had an issue with my Centos 6 box there about a couple of months ago when I would successfully login with ssh the connection would immediately close. I was suspecting packages with yup and saw there were some duplicate packages for OpenSSH. I did a cleanup and now yum is happy.

I restarted my box and now I can't connect to ssh. connection refused

When I took a look at grep sshd secure I get a ton of error: rexec of /usr/sbin/sshd failed: No such file or directory

also when I try and restart sshd /etc/init.d/sshd restart I get

stopping sshd: [FAILED]

Is there anyone that can point me in a direction to get this fixed? I have been Googling for hours lol

When I do command yum distro-sync openssh-server --skip-broken i get

Code:
Loaded plugins: fastestmirror, universal-hooks

Setting up Distribution Synchronization Process

Loading mirror speeds from cached hostfile

 * EA4: x.x.x.x

 * cpanel-addons-production-feed: x.x.x.x

 * cpanel-plugins: x.x.x.x

 * base: mirror.dal.nexril.net

 * epel: sjc.edge.kernel.org

 * extras: repos.lax.layerhost.com

 * remi: mirrors.mediatemple.net

 * remi-safe: mirrors.mediatemple.net

 * updates: centos-distro.1gservers.com

Resolving Dependencies

--> Running transaction check

---> Package openssh-server.x86_64 0:5.3p1-124.el6_10 will be a downgrade

--> Processing Dependency: openssh = 5.3p1-124.el6_10 for package: openssh-server-5.3p1-124.el6_10.x86_64

---> Package openssh-server.x86_64 0:5.3p1-269.el6 will be erased

updates/filelists_db                                                                                                                                                                                                                  | 7.9 MB     00:00



Packages skipped because of dependency problems:

    openssh-server-5.3p1-124.el6_10.x86_64 from updates
 

andrew.n

Well-Known Member
Jun 9, 2020
606
171
43
EU
cPanel Access Level
Root Administrator
I would disable the extra repositories (remi,remi-safe) and install openssl server again:

yum install --disablerepo=remi,remi-safe openssh-server

If it's already installed give a reinstall a try:

yum reinstall --disablerepo=remi,remi-safe openssh-server
 

cbielich

Registered
Dec 26, 2016
3
0
1
Las Vegas
cPanel Access Level
Root Administrator
Code:
Loaded plugins: fastestmirror, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                                                         |  16 kB     00:00
 * EA4: xxx.xxx.xxx.xx
 * cpanel-addons-production-feed: xxx.xxx.xxx.xx
 * cpanel-plugins: xxx.xxx.xxx.xx
 * base: linux.mirrors.es.net
 * epel: mirror.arizona.edu
 * extras: mirrors.ocf.berkeley.edu
 * updates: repos.lax.layerhost.com
EA4                                                                                                                                                                                                                                   | 2.9 kB     00:00 ...
cpanel-addons-production-feed                                                                                                                                                                                                         | 2.9 kB     00:00 ...
cpanel-plugins                                                                                                                                                                                                                        | 2.9 kB     00:00 ...
base                                                                                                                                                                                                                                  | 3.7 kB     00:00
extras                                                                                                                                                                                                                                | 3.4 kB     00:00
updates                                                                                                                                                                                                                               | 3.4 kB     00:00
Package matching openssh-server-5.3p1-124.el6_10.x86_64 already installed. Checking for update.
Nothing to do
[email protected][~]# yum reinstall --disablerepo=remi,remi-safe openssh-server
Loaded plugins: fastestmirror, universal-hooks
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
 * EA4: xxx.xxx.xxx.xx
 * cpanel-addons-production-feed: xxx.xxx.xxx.xx
 * cpanel-plugins: xxx.xxx.xxx.xx
 * base: mirror.phx1.us.spryservers.net
 * epel: mirror.arizona.edu
 * extras: mirrors.ocf.berkeley.edu
 * updates: repos.lax.layerhost.com
Installed package openssh-server-5.3p1-269.el6.x86_64 not available.
Error: Nothing to do