vagrant 用户名密码登录

正常登录后 

        sudo -i 切换到root权限

       vim /etc/ssh/vim sshd_config

       将PasswordAuthentication no设置

        为yes

重启sshd.service服务

        systemctl restart sshd.service