Ubuntu18.04系统如何指定sshd服务的监听地址
发布时间:2022-12-23 11:58:00 来源: 纵横云
Ubuntu18.04系统如何指定sshd服务的监听地址
在ubuntu18.04中如何指定sshd服务的监听地址呢?本文给出详细说明。
1.打开sshd_config文件
vi /etc/ssh/sshd_config

说明:0.0.0.0表示监听所有地址,不带端口默认使用上面设置的端口。可以设置多个值。
2.例如:改为ListenAddress 192.168.1.6:23452则只允许该地址进行登录

本文来源:
https://www.zonghengcloud.com/article/8941.html
[复制链接]
链接已复制