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

oprenstack cloud init set password

时间:2017-12-28 19:47:50      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:service   设置代理   password   wget   post   eof   res   start   span   

 

设置代理和password

 

#!/bin/bash
cd /home/ubuntu
wget otcloud-gateway.bj.intel.com/script.tar.gz
tar xzvf script.tar.gz
cd script
./vm-setup.sh

passwd ubuntu << EOF
123456
123456
EOF

sed -i s/PasswordAuthentication no/PasswordAuthentication yes/g /etc/ssh/sshd_config
service ssh restart

 

oprenstack cloud init set password

标签:service   设置代理   password   wget   post   eof   res   start   span   

原文地址:https://www.cnblogs.com/shaohef/p/8137073.html

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