Enable sshd service in centos

Source: Internet
Author: User

The error message for enabling the sshd service ssh localhost in centos is ssh: connect to host localhost port 22: Connection refused. One major cause is that the sshd service is not started, start the sshd service first, then there is no problem: www.2cto.com 1. Check whether the card service enables ps-ef | grep ssh 2. If not, install yum install openssh-server 3. After installation enable/etc/init. d/sshd start If/etc/init. d/sshd start: Generating SSH1 RSA host key: [FAILED] www.2cto.com solution: $ yum search openssh $ sudo yum install openssh $ sudo sshd ser Vice start sshd re-exec requires execution with an absolute path [honki @ localhost ~] $ Sudo service sshd start Generating SSH1 RSA host key: [OK] Generating SSH2 RSA host key: [OK] Generating SSH2 DSA host key: [OK] Starting sshd: [OK] 4. Disable/etc/init if the firewall still cannot be connected. d/iptables stop.
 

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.