centos实现证书登陆禁止密码登陆

一、生成秘钥 ssh-keygen -t rsa 默认会在用户目录下生成一个公钥和私钥shell 二、将公钥设置为该服务器的登陆公钥 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 三、设置ssh,禁止密码登陆,改用私钥登陆 vi /etc/ssh/sshd_config RSAAuthentication yes StrictModes no Pu
相关文章
相关标签/搜索