码迷,mamicode.com
首页 > 其他好文 > 详细

Openstack镜像和密码

时间:2015-12-03 20:42:32      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:

#!/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

Openstack镜像和密码

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!