Putty connected to the virtual machine Centos appeared: Network error: Connection refused

  

I am a Linux rookie like many people, but it is very interested in this, not toss is not good;

I downloaded centos 6.4 After installing the VMware virtual machine, everything works fine;

So I installed Putty in the local machine to connect to the centos system in the virtual machine

Result prompt: Network error: Connection refused error

meaning: connection is denied



ping the virtual machine ip, it can be normal.


First check if the SSHD service is enabled

Enter the Centos terminal input #ssh localhost

If prompted: ssh: connect to host localhost port 22: Connection refused error

Don't worry about it , the reason for not starting the sshd service

Install the sshd command: #yum install openssh-server

Open after installation: #/etc/init.d/sshd start

In case you still can't connect at this time, turn off the firewall or open port 22.

Close the firewall command: # /etc/init.d/iptables stop


Report Cheng, at this time window 7 can normally use the putty to access the virtual machine centos


small tips:

The above command operations must be performed under root privileges, otherwise it will operate Failure;

Copyright © Windows knowledge All Rights Reserved