error: rexec of /usr/sbin/sshd failed: No such file or directory
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
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-
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 0 -
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 root@ip-xxx-xxx-xxx-xxx[~]# 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 do0 -
This was my exact issue that solved my problem. It was a bug with yum update. 0 -
I am glad to see that you were able to get this resolved. Thanks for updating the thread that @andrew.n's advice helped. 0
Please sign in to leave a comment.
Comments
4 comments