first of all
- The network I use is the forbidden port 22, so I need to modify the ssh port number.
First of all, select the appropriate port number, which cannot be the same as the existing port number.
Then visit this connection: https://ecs.console.aliyun.com/#/securityGroupDetail/region/cn-beijing/groupId/sg-2zebighqoqouop7n8sa2/detail/intranetIngress
Add this security group rule.
After logging in to the system, mine is the ubuntu system. then
# 1.进入配置文件
vi /etc/ssh/sshd_config
# 2.修改端口号为 8008 根据自己设置的端口号改
port 8008
# 不要忘记第三步,重启服务,使修改的配置文件生效
service sshd restart
the end
Now we can use port 8008 to access our server!