Vagrant disable SSH Agent
Solution 1
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.
Solution 2
I have faced the same issue and done the following:
Send shutdown command to your VM (virtual machine)
Run the command again: vagrant up
ssh issue was resolved after this as VM has been restarted again.
Related videos on Youtube
MarkS
Updated on September 16, 2022Comments
-
MarkS over 1 year
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 & thevagrant-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
-
Nathan Gould over 6 yearsUpgrading from 5.0.x to 5.1.30 fixed the same error for me on Mac.
-
Manan Shah over 5 yearsI 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!!!