设置代理和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