Ssh:connect to host localhost Port 22:connection refused (2)

Source: Internet
Author: User

Command: SSH localhost

Error message: Ssh:connect to host localhost Port 22:connection refused

Cause of Error:

1.sshd not installed

2.sshd not started

3. Firewalls

Workaround:

1. Determine the installation Sshd:sudo Apt-get install Openssh-server

2. Start Sshd:net start sshd

3. Check firewall settings

Test method:

Input command: SSH localhost

If successful, the installation is successful, and the connection is passed;

Reprint: http://blog.sina.com.cn/s/blog_573a052b0102dwxn.html

Ssh:connect to host localhost Port 22:connection refused (2)

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.