Openstack镜像和密码

#!/bin/sh
passwd ubuntu<<EOF
ubuntu
ubuntu
EOF
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
service ssh restart

这样你就可以使用ssh登陆到虚拟机,不需要通过console。

转自: http://www.tuicool.com/articles/QNZRJz

原文地址:https://www.cnblogs.com/pinganzi/p/5017212.html