1.登录vagrant
2.vi /etc/ssh/sshd_config
3.把PermitRootLogin yes前面的"#"去掉
4.把PasswordAuthentication yes前面的"#"去掉
5.重启sshd
systemctl restart sshd(或者service sshd restart)
1.登录vagrant
2.vi /etc/ssh/sshd_config
3.把PermitRootLogin yes前面的"#"去掉
4.把PasswordAuthentication yes前面的"#"去掉
5.重启sshd
systemctl restart sshd(或者service sshd restart)