Ssh logon failure due to abnormal suse restart

Source: Internet
Author: User

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.