This afternoon, after a computer is installed with a software package and shut down abnormally, it is found that remote ssh cannot be connected. Previously, it can be connected.
Execute service sshd
No response is returned, and even the sshd service does not.
Rpm-qa | grep ssh
Openssh-4.2p1-18.2
Openssh-askpass-4.2p1-18.2
However, it is shown that it has been installed and you want to reinstall it.
Rpm-ivh -- replacepkgs openssh-4.2p1-18.2.x86_64.rpm
Rpm-ivh -- replacepkgs openssh-askpass-4.2p1-18.2.x86_64.rpm
Execute service sshd and find that the service still does not have the sshd service.
Finally, uninstall and try again.
Rpm e openssh-4.2p1-18.2.x86_64
Rpm e openssh-askpass-4.2p1-18.2.x86_64
Rpm-ivh -- replacepkgs openssh-4.2p1-18.2.x86_64.rpm
Rpm-ivh -- replacepkgs openssh-askpass-4.2p1-18.2.x86_64.rpm
Then run service sshd.
Usage:/etc/init. d/sshd {start | stop | status | try-restart | force-reload | probe}
Finally.
Start sshd service
Service sshd start
View
Service sshd status
Checking for service sshd running
Normal.
Www.2cto.com
This article is from the "richard's note" blog