The SSH service on Windows failed to connect to the remote host

Source: Internet
Author: User
Tags vps

Putty connection Error Message "Network Error:connection refused", Xshell connection Error "Connection failed: (Port 22)"

Tried:

1. Check if the SSH service on the VPS is on, restart the SSHD service: service sshd restart

2. Open the 22nd port on the VPS

3. Allow designated IP SSH login VPS

4. Modify the Windows host Firewall settings, allow the application to access the network, new rules to open the Tcp/ip:22 port in and out

Have been thinking is the problem of local Windows IP is limited, solve the fruitless, and finally focus on the VPS port number 22nd to find the problem:

To view the ports being monitored on the VPS:

NETSTAT-ANP | grep LISTEN

The client port that found the SSHD service column is: 26473

MD is not the default port number 22nd, when the VPS modified ...

Later on Windows with SSH software login to the VPS with the modified port number of 26473 can be correctly logged in

The SSH service on Windows failed to connect to the remote host

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.