禁止 ssh 密码登陆

/etc/ssh/sshd_config 里面

PasswordAuthentication no
UsePAM no

为啥这样不要问我……去看看 /etc/ssh/sshd_config 里面的注释或者 man sshd 之类的吧,因为我也说不非常清楚,哈哈哈哈。

Tags:,

This entry was posted in Information Technology and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">