The host may be down, or there may be a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall.
The following problems may occur:
1. SSH is not installed when centos is installed.
2. sshd_config and ssh_config configuration problems
3. IP address problems
4. Firewall Problems
1. Install centos SSH
Yum Install SSH
Ii. Start SSH
Service sshd start
3. Enter the ETC/ssh/sshd_config file configuration in the system file.
1. VI/etc/ssh/sshd_config uncomment permitrootlogin or change no to yes.
2. Service sshd restart
3. Run the setup command to close the firewall.
4. Enter the system file/etc/ssh/ssh_config file configuration
Enter VI/etc/ssh/ssh_config in the terminal.
# Remove the # sign before port 22
Port 22
5. Configure IP addresses
Ifconfig eth0 192.168.121.11
This error indicates that SSH Secure Shell for workstations cannot establish a connection to the remote host computer. There are several reasons that might cause this situation.
It may be that you have simply made a typing mistake, and there is an error in the name of the remote host computer. in this case you shoshould also receive an error stating that the host is unknown.
Check that you have defined the correct port number for the connection. The port can be changed on the connection page of the Settings dialog.
There may be problems with the configuration or physical setup of the network connection. Verify that other network connections are functioning.
This problem may also arise if your local system is protected by a firewall and the firewall has not been properly configured. if you suspect that this is the case, ask your local system administrator to reconfigure the firewall.
There may also be a temporary problem with the remote host computer. if this is the case, you shoshould wait for a while and try to connect again later. contact the administrator of the remote host computer for additional information.
This error indicates that the SSH Secure Shell of the workstation cannot be connected to a remote host computer. There are several possible causes.
This may be because you just made a typing error and there is an error in the remote host's computer name. In this case, you should also receive an error indicating that the host is unknown.
Check whether the port number is defined as the correct connection. You can change the connection "page settings" dialog box on the port.
This may be due to network connection configuration or physical installation issues. Check whether the network connection is normal.
If your local system firewall and firewall are not properly configured for protection, this problem may also occur. If you suspect this is the case, ask your local system administrator to reconfigure the firewall.
It may also be a temporary problem with the remote host. If so, you should wait for a while and try to connect again. For more information, contact the Computer Administrator of the remote host.
Illustration: