- 本文链接
- 捣蛋狂魔之让别人无法登陆机器
- 禁止ssh密码登录机器
-
登录目标机器 打开 /etc/ssh/sshd_config ,修改PasswordAuthentication yes 为:
PasswordAuthentication no -
重启服务/etc/init.d/sshd restart
- 或者重启应该也行
-
然后别人就无法用ssh用用户+密码来登陆记得机器啦!

登录目标机器 打开 /etc/ssh/sshd_config ,修改PasswordAuthentication yes 为:
PasswordAuthentication no
重启服务/etc/init.d/sshd restart
然后别人就无法用ssh用用户+密码来登陆记得机器啦!