M
M
montray2018-05-18 20:45:17
virtual box
montray, 2018-05-18 20:45:17

How to fix vagrant ssh?

Good day.
Vagrant ssh stopped working, or rather, for some reason, it began to connect using a password instead of a key. I did not touch any settings, I just connected the vbguest plugin. Reinstalling virtualbox and vagrant itself did not help. Moreover, on the same versions, with the same vagrantfile only on another PC, everything is fine.
This gives out with vagrant provision

spoiler
SSH is getting permission denied errors when attempting to connect
to the IP for SSH. This is usually caused by network rules and not being
able to connect to the specified IP. Please try changing the IP on
which the guest machine binds to for SSH.

This is with vagrant up
spoiler
default: SSH auth method: password
default: Warning: Remote connection disconnect. Retrying...

If you register vagrant ssh yourself, then everything is OK - we enter the password and we are inside. But provisions are not installed :(
Google did not help. I tried changing vagrantfile, even just through vagrant init - everything is the same.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
montray, 2018-05-19
@quiex

However, I fixed it myself. Now, so that vagrant does not inject its keys, you need to write in vagrantfile

config.ssh.insert_key=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question