Ubuntu18.04系统如何限制sshd服务只使用IPv4
发布时间:2023-1-9 11:53:50 来源: 纵横云
Ubuntu18.04系统如何限制sshd服务只使用IPv4
在ubuntu18.04中如何限制sshd服务只使用IPv4呢?本文给出详细说明。
1.打开sshd_config文件
vi /etc/ssh/sshd_config

2.将#AddressFamily any 改为 AddressFamily inet后保存退出

说明:inet代表只使用IPv4,inet6代表只使用IPv6
本文来源:
https://www.zonghengcloud.com/article/9178.html
[复制链接]
链接已复制