[NS :
如果使用主配置/etc/ssh/sshd_config如果使用单独配置/etc/ssh/sshd_config.d/你的配置文件中加入一行后重启sshdsystemctlreloadsshdAllowUsersroot@1.1.1.1root@2.2.2.2解释:允许1.1.1.1和2.2.2.2IP登录root账
muioe] SSH只允许特定IP登录配置如果使用主配置/etc/ssh/sshd_config如果使用单独配置/etc/ssh/sshd_config.d/你的配置文件中加入一行后重启sshdsystemctlreloadsshdAllowUsersroot@1.1.1.1root@2.2.2.2解释:允许1.1.1.1和2.2.2.2IP登录root账