Ali CVM cannot log in after modifying the default port 22

cannot log in after modifying the default port of a non-root user (- p 60000)

// 
sudo vi /etc/ssh/sshd_config

clipboard.png
clipboard.png

Mar.11,2021

solved

cause of problem : Aliyun closes other ports by default

you need to create rules in the security group of Aliyun web management interface, as shown in figure

.

clipboard.png

clipboard.png


usually the SSH is connected through port 22. If you modify the DNS, you will definitely not be able to connect.

Menu