default: Warning: Authentication failure. Retrying...
环境:
win10,vagrant,virtualBox, ubuntu
1. 先使用ragrant 用户登录。
2. $sudo passwd root #按照提示输入两次新的密码,并加以确认。
sudo passwd root
3. 切换至root用户
su root
4. 编辑/etc/ssh/sshd_config
vim /etc/ssh/sshd_config
修改 PermitRootLogin 值为yes
保存退出
:wq
------------------------------------手动分割线-----------------------------------------------
(以下操作还未测试是否必改)
5. 修改Vagrantfile文件
config.ssh.username = "root"
config.ssh.password = "root"
config.ssh.insert_key = "true"
-----------------------------结束-----------------------------------------------
使用ssh连接用户连接。。。。