Ssh root权限连接不上远程主机,错误提示:publickey 秘钥

版权声明:本博客为博主原创博文,可以任意转载。转载请附上博客链接: http://blog.csdn.net/qiqishuang https://blog.csdn.net/qiqishuang/article/details/51541390

 1. xshell生成密钥

  • 属性 -> 生成
    这里写图片描述

  • openstack创建虚拟机,导入pub_key
    这里写图片描述

2. 获取公钥,私钥

root@node:~/.ssh#ls
id_rsa  id_rsa.pub

3. ssh用户身份验证

  • xshell输入
    rsa

4. 开启root和key auth服务

  • 开启root登录权限
PermitRootLogin yes
PasswordAuthentication yes
  • 开启public key登录权限
RSAAuthentication yes
PubkeyAuthentication yes

猜你喜欢

转载自blog.csdn.net/qiqishuang/article/details/51541390