Focus on cloud service provider activities
Notes on website operation and maintenance

Solution for SSH connection failure after AliCloud server activation

Today, I met a netizen who cannot connect to SSH for software installation after opening the AliCloud ECS server and setting the Linux system and ROOT password correctly. At first, Lao Zuo thought it was a problem with the server password. He asked him to reset the password first to see if it could be solved. However, when I connected to SSH, I did not ask for a password problem, but was unable to connect. It should be a port problem.

Laozuo asked the netizen whether he had modified the port. He told him that it was a new server. I also reinstalled the system for him, but it was also unable to connect. This should be a security group problem, because the default Alibaba Cloud has a security group, but I have used the default 22 port before. Is there no default 22 port for this machine portal?

First, check the current server security group

 Solution for SSH connection failure after AliCloud server activation - Page 1

Sure enough, Lao Zuo did not see port 22 in the current server security group of Alibaba Cloud. Later, however, I found that there was a security group shared by other machines in his account. The previous machine canceled port 22, so port 22 could not be seen in the new server.

Second, add ports

 Solution for SSH connection failure after AliCloud server activation - Page 2

There is a lack of 22 ports. We can add them manually or quickly. After the addition, Lao Zuo can connect to AliCloud server through SSH. Please refer to Alibaba Cloud ECS server quick configuration security group release port method

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Solution for SSH connection failure after AliCloud server activation


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge