linux上sshd开启密钥及密码认证
SSHD的目的在于允许远程用户安全地连接到您的系统,并执行诸如执行命令或传输文件等操作
实现Linux秘钥和密码同时认证
steps
vim /etc/ssh/sshd_config
参数:
#允许root认证登录
PermitRootLogin yes
#允许密码认证
PasswordAuthentication yes
#秘钥认证
RSAAuthentication yes
PubkeyAuthentication yes
#默认公钥存放的位置
AuthorizedKeysFile .ssh/authorized_keys