Putty connects to ubuntu: network error: connection refused, puttyubuntu

Source: Internet
Author: User

Putty connects to ubuntu: network error: connection refused, puttyubuntu
Cause:

Ubuntu has a bug: a folder sshd is missing in the/var/run/directory.

Solution:

On the command line, enter:

Sudo mkdir/var/run/sshd

Sudo/usr/sbin/sshd

Netstat-nlt

The following log problems are solved:

 

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Tcp 0 0 127.0.1.1: 53 0.0.0.0: * LISTEN
Tcp 0 0 0.0.0.0: 22 0.0.0.0: * LISTEN
Tcp 0 0 127.0.0.1: 631 0.0.0.0: * LISTEN
Tcp6 0 0: 22: * LISTEN
Tcp6 0 0: 1: 631: * LISTEN

You can see that port 22 has been enabled, and you can use putty to connect to linux to achieve remote access.

From:

Http://blog.sina.com.cn/s/blog_8cc77f5e0102w53x.html

 

Related Article

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.