Linux VPS SSH KEY 相关笔记

禁用密码登录, 仅允许 authorized_keys

默认你已经设置了公钥密钥,

vi /ssh/sshd_config

编辑如下文件部分:

PubkeyAuthentication          yes
AuthorizedKeysFile              .ssh/authorized_keys
PasswordAuthentication      no

然后重启ssh 即可。

service sshd restart
© DeveWork.com 2018. sitemap  统计 Updated at 2018-01-06 21:21

results matching ""

    No results matching ""