加固SSH

加固SSH 1. 改端口 sed -i 's/.*Port [0-9]{1,5}/Port NUM/' /etc/ssh/sshd_config 2. 不容许root登录 sed -i 's/.*PermitRootLogin.*$/PermitRootLogin no/' /etc/ssh/sshd_config 3. 不使用密码 而使用KEY来验证  PasswordAuthenticatio
相关文章
相关标签/搜索