1.登陆vagrant 2.sudo vi /etc/ssh/sshd_config 3.把PermitRootLogin yes前面的"#"去掉 4.把PasswordAuthentication yes前面的"#"去掉