Linux使用key登录配置记录

更改ssh配置文件
vim /etc/ssh/sshd_config #修改
PermitRootLogin no #禁止root登录
PubkeyAuthentication yes #启用公告密钥配对认证方式
RSAAuthentication yes #允许RSA密钥
PasswordAuthentication no #禁止密码验证登录,如果启用的话,OpenSSH的 RSA认证登录就没有意义了。

重启服务/etc/init.d/ssh restart

发表评论

电子邮件地址不会被公开。 必填项已用*标注