linux修改ssh端口

修改ssh端口号

vi /etc/ssh/sshd_config

找到 # Port 22

假设改到12304

Port 312304

记住一定要讲#去掉

然后:wq 退出保存

输入命令

# systemctl restart sshd

posted @ 2022-06-29 14:41  舒然  阅读(109)  评论(0)    收藏  举报