设置ssh只允许用户从指定的IP登陆

vim /etc/ssh/sshd_config

AllowUsers root@192.168.10.15

systemctl restart sshd.service

原文地址:https://www.cnblogs.com/kcxg/p/11060126.html