1、设置/etc/cloud/cloud.cfg
disable_root: 0 #允许root用户登录
ssh_pwauth: 1 #允许ssh以密码登录
2、设置/etc/ssh/sshd_config
ChallengeResponseAuthentication yes
PasswordAuthentication yes
PermitRootLogin yes
PubkeyAuthentication no
3、重启ssh服务
service sshd restart
如何配置openstack虚拟机通过密码ssh访问
最新推荐文章于 2024-03-19 15:14:38 发布