The centos linux ip address cannot connect to the database, and the ssh login server must use port 22

Question 1: When connecting to the database, you cannot connect directly by using the IP address. You must use ssh to connect?

Question 2: Port 22 must be used to log in to the server with ssh. Port 10086 has been added to /etc/ssh/sshd_config, and port 10086 has been opened in the firewall, so port 10086 cannot be used to log in to the server. Why?

 

[ Handling comments ]

1. You can use ip to directly connect to the database, but your security group does not open port 3306. Please refer to the attachment and the link below to test whether it is normal.

https://help.aliyun.com/document_detail/25471.html

2. In the same way, your security group does not open port 10086, so you cannot use this port to connect. You can change the 3306 in the attachment to 10086 and add it to the security group.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324855691&siteId=291194637