在创建instance的时候,选择创建后,然后选择直接输入,最好输入如下代码
- #!/bin/sh
- sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
- sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
- cp -f /home/ubuntu/.ssh/authorized_keys /root/.ssh/
- service ssh restart
- passwd ubuntu<<EOF
- passwd
- passwd
- EOF
之前使用吴大哥的K版,由于Python版本的问题,UI解密经常会报错,他也该出了解决的方法:
原因:
Python-django的版本太高,需要降到1.8以下
解决办法:
a、卸载django的rpm包
b、安装1.6的rpm包
下载路径:链接:http://pan.baidu.com/s/1pJMlJh5密码:uzsd
c、重启http服务
d、问题解决。