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版本不同该文件有所区别