版权声明:本博客为博主原创博文,可以任意转载。转载请附上博客链接: 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输入
4. 开启root和key auth服务
- 开启root登录权限
PermitRootLogin yes
PasswordAuthentication yes
- 开启public key登录权限
RSAAuthentication yes
PubkeyAuthentication yes
- 编辑文件 /etc/ssh/sshd_config ubuntu版本不同该文件有所区别http://blog.csdn.net/qiqishuang/article/details/51547884