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

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-05-17
  • 2021-06-28
  • 2021-07-03
  • 2021-05-21
  • 2021-08-04
  • 2021-09-21
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-08-07
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案