Connecting to linux through putty under windows, including Network error: Connection refused error.
Question: The sshd service has been installed, why not?
The reason for this error is that although the sshd service is installed by default in linux, it is not started or root login is not allowed.
Modify the sshd configuration file.
vi /etc/ssh/sshd_config Open the file and make the following modifications:
turn out to be:
PermitRootLogin no
#PermitRootLogin yes
After changing:
#PermitRootLogin no
PermitRootLogin yes
Save and exit.
However, although the above modifications have been made, you must first check whether the sshd service is started:
service sshd status
If not started, start the service:
service sshd start
Starting the service in this way does not achieve the effect of booting, you should do this:
chkconfig --level 2345 sshd on
If you are worried that it does not take effect, restart linux.