The error message for enabling sshd service sshlocalhost in centos is ssh: connecttohostlocalhostport22: Connectionrefused. one major cause of this error is that the sshd service has not been started. c... 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 service 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.
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