设置ssh只允许用户从指定的IP登陆 vim /etc/ssh/sshd_config AllowUsers root@192.168.10.15 systemctl restart sshd.service