Vagrant disable SSH Agent
Asked Answered
C

3

13

Getting the following when I am trying to run Vagrant up.

Have tried to re-provision etc. Even tried rolling back (in Time Machine) the user/vagrant-local directory & the vagrant-local directory where the sites all live.

An error occurred in the underlying SSH library that Vagrant uses. The error message is shown below. In many cases, errors from this library are caused by ssh-agent issues. Try disabling your SSH agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

timeout during server version negotiating

Cernuous answered 11/8, 2016 at 15:19 Comment(3)
Also getting this error on Windows 10, Vagrant 1.8.5 with VirtualBox 5.1.2Kumiss
If you need help with VVV go to the VVV github or our slack, I'm the project lead for VVVCareycarfare
Also getting this error on Windows 10 22H2, Vagrant 2.4.1 with VirtualBox 7.0.12.Separative
C
9

I was getting this exact error.

I upgraded from VirtualBox 5.0.x to 5.1.8 and the error went way. After upgrading I did vagrant destroy and then vagrant up and the machine booted up without issues.

So this is what I have now:

  • Windows 10 pro
  • Vagrant 1.8.7
  • VirtualBox 5.1.8

I also made sure everything else was updated. Don't forget to reboot.

Hope this helps.

Clench answered 17/11, 2016 at 21:59 Comment(1)
Upgrading from 5.0.x to 5.1.30 fixed the same error for me on Mac.Humanity
G
9

I have faced the same issue and done the following:

  1. Send shutdown command to your VM (virtual machine)

  2. Run the command again: vagrant up

ssh issue was resolved after this as VM has been restarted again.

Grabowski answered 16/5, 2017 at 11:19 Comment(4)
I have solved the issue by two commands: "vagrant destroy --force" and "vagrant up --debug" ( In my case, the actual problem is with the "directory already existed." It has nothing to do with ssh or related stuff. :) Enjoy!!!Daina
For my case following has worked. vagrant halt and vagrant upFrankie
I just powered off VM and Did Vagrant up and it resolved the error.Krieger
This worked instantly! Thanks @prashantOtoscope
C
0

I just had the same issue on this setup:

  • Windows 11
  • Vagrant 2.3.1
  • VirtualBox 6.1.38

What seems to have solved the problem for me is this:

  • run vagrant destroy -f
  • temporarily disable "Use the WSL2 based engine" from Docker Desktop. Wait for Docker Desktop restart.
  • run vagrant up --debug. The problem is still reported, but this time Vagrant recovers and runs to the end
  • Verify vagrant ssh is working
  • Re-enable "Use the WSL2 based engine". Wait for Docker Desktop restart.
  • Verify things are still working (also after re-boot)
Conduit answered 7/10, 2022 at 14:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.