Putty connection to the VM centos is denied Solution

Source: Internet
Author: User

Today, I used putty to go to The centos System in the ssh local Vm and found that the connection was rejected.

This is the first time I used putty to connect to a virtual machine on my computer. When I encountered this error, I first thought that the firewall in centos was not turned off. So I checked that the firewall was running service iptables status, shows the result.

If the firewall is not enabled, it is not a firewall problem. So I pinged the IP address of the Virtual Machine and found that the firewall can be pinged.

It seems that the sshd service is not enabled. First, check whether openssh-server is installed and reinstall it. Then, type yum install openssh-server. The result is as follows:

The installation is complete.

It should be that the sshd service is not enabled, so the service is being enabled,/etc/init. d/ssh start

After it is enabled, use putty to connect to the centos System in the VM.

Note: putty can log on to the remote login software of other systems from a terminal on windows!

If you want to allow other computers to access the virtual machines on your computer, you must disable the windows Firewall to connect to the server. In the past, the apache server was built on linux and several webpages were placed. This machine can access the server, when other hosts cannot access it, you will find that you can access it by disabling the windows Firewall.

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.