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

相关文章:

猜你喜欢
相关资源
相似解决方案