vagrant修改默认用户错误问题
vagrant安装好后默认使用vagrant账号登陆,目前修改了vagrant用户为www,开启sshd登陆.其中修改配置:
Vagrant.configure(2) do |config|
... ...
config.ssh.username = "www"
config.ssh.password = "www"
config.ssh.host = '192.168.200.100'
config.ssh.port = "22"
end
使用vagrant up启动机器后报错:
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.200.100:22
default: SSH username: www
default: SSH auth method: password
default: Warning: Connection timeout. Retrying...
default: Warning: Connection refused. Retrying...
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
机器启动成功,但smb目录没有挂载到虚拟机中,另外每次vagrant ssh进入机器都需要输入密码。估计是配置问题,求拜各路大神帮忙!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
输入密码登录后,到.ssh目录下,修改authorized_keys的权限为644,就可以不用输入密码登录了。