linux修改ssh端口

命令:vim / etc / ssh / sshd_config
在17行 找到#Port 22

把前面的#删掉,在下面再添加一行

Port 5000

命令:/ bin / systemctl restart sshd.service  

重启服务。
试一下连接5000端口

好使的话把22端口删掉

 

猜你喜欢

转载自blog.csdn.net/qq_38085855/article/details/83112845