Putty connecting Ubuntu:network Error:connection refused

Source: Internet
Author: User

Reason:

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

Workaround:

At the command line, enter:

sudo mkdir/var/run/sshd

Sudo/usr/sbin/sshd

Netstat-nlt

The following log issues are resolved:

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::: $:::* LISTEN
TCP6 0 0:: 1:631:::* LISTEN

You can see that port 22nd is open and you can use Putty to connect to Linux for remote access.

From

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

Putty connecting Ubuntu:network Error:connection refused

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.