Cirry's Blog

Debian12修改sshd连接默认端口号

2024-08-06
linux
1分钟
47字

修改配置文件

sshd默认配置文件位置在:/etc/ssh/sshd_config

Terminal window
1
vim /etc/ssh/sshd_config

删除Port前面的#号,并修改后面的22为其他端口数字。

default

重启sshd服务

Terminal window
1
systemctl restart sshd
本文标题:Debian12修改sshd连接默认端口号
文章作者:Cirry
发布时间:2024-08-06
感谢大佬送来的咖啡☕
alipayQRCode
wechatQRCode