【linux】腾讯云Centos7修改默认SSH端口

vi /etc/ssh/sshd_config

找到#Port 22,将其修改为#Port xxxxx

云服务器 ECS Linux CentOS 7 下重启服务不再通过 service  操作,而是通过 systemctl 操作。

腾讯云的操作系统重启SSH 服务要用命令
systemctl restart sshd.service

猜你喜欢

转载自blog.csdn.net/wbdxz/article/details/79650617