If you are looking for software to use, go to Huajun Software Park! software release

What should I do if putty cannot connect to the server - What to do if putty cannot connect to the Linux server

Author: Qiuye PPT Date: 2022-04-21

PuTTY
PuTTY-v0.80 latest version

remote control Storage size: 3.54MB Time: 2022-03-24

Software introduction: PuTTY is a serial interface connection software, mostly used for remote login control functions. This is a free SSH/Telnet program that can...

Download now

Many people don’t know what to do if putty cannot connect to the server? The article brought to you today is the solution to the problem of putty unable to connect to the Linux server. If you still don’t know, let’s learn it with the editor.

Use the remote connection tool PuTTY to enter the host IP address and the opened port.

When the following error occurs:


It should be that SSH is not installed on the remote host or SSH is not started. SSH needs to be installed manually.

​ ​ 1. Use the command: ssh localhost to check whether ssh is installed

​ ​ 1.1 Appears:

​​ 1.2 requires manual installation of ssh

1.2.1 Enter the command:

1.2.2 If the following picture appears:


It is because the last "apt-get" process is still in progress, so the "system update lock" cannot be obtained when there is a new process. At this time, just kill the previous process** (Personal test successful) )**

1.2.3 View the process:

Order:

​​ 1.2.4 Kill the process:

Order:


​ 1.2.5 Execute the command to install ssh again:


​ 1.2.6 After the installation is complete, check whether the ssh service is started:


As shown in the picture, it means that SSH is installed and the service is started successfully.

​​ ​Additional: If the problem is not solved after using the command: ps -e | grep apt to view the process and kill the process, you can try the following two commands:

Then execute the installation command again

Finally, use putty to connect remotely.

The above is all the information brought by the editor on what to do if Putty cannot connect to the server. I hope it can help you.

Related articles