·Vagrant ssh time
known_hosts has been deleted.While I was working on it, this suddenly happened.
Could you tell me the solution?
CentOS 7 is a guest OS launched in virtualBox.
ssh-vvv-p2222-i to /.vagrant.d/insecure_private_key-lvagrant 127.0.0.1
When I ran , I received the following message:
What should I do?
I compare the log from my environment (
ubuntu15.10) to the successful guest OS (
ssh, but it seems to be almost the same line from
ssh_exchange_identification: Connection closed by remote host.
According to some web page descriptions, this error seems to have multiple causes.
Among them, ssh_exchange_identification: Connection closed by remote host page contains a relatively comprehensive description.
sshdand the connection maximum has been reached
~/.ssh/known_hostsmay be erased, or the server-side public key file (
authorized_keys) may be re-created, or
/etc/ssh/*key*may not be restarted.
openslif your dependency with
sshdbreaks down after upgrading
For your information.
After creating a guest OS with In order to replace the key pair of the box and guest OS using the unsafe key pair adopted by Vagrant 1.7, the guest OS corresponds to the secret key~/.vagrant.d/insecure_private_key
vagrantup in a Vagrant 1.7.4 environment, we created a box with
vagrant package and changed the path of the SSH private key from
in a Vagrant 1.7.4 environment. contained in the Vagrant handout.
In order to replace the key pair of the box and guest OS using the unsafe key pair adopted by Vagrant 1.7, the guest OS corresponds to the secret key~/.vagrant.d/insecure_private_key
The solution is to create a public key corresponding to the private key in your environment (this public key is virtually published online, so https://github.com/mitchellh/vagrant/tree/master/keys Do not mask)
After generating the public key as the , log in to Linux in the guest OS as the
vagrant user and use the public key as the previous one.
In the , register the
vagrant user public key authentication SSH login for the guest OS.
After you leave the guest OS, do
vagrant half and
appears, generating and replacing a new key pair for
From now on,
vagrant up will be successful.
I also fell in love with it the other day, but is there a possibility that ssh is not installed in the guest OS??
If you edit the Vagrantfile as follows and vagrant up, the GUI will start, so I would like you to log in with vagrant on the screen and see if the ssh command is installed.If it's not installed, I can't ssh in the first place, so I'll lose my vagrant ssh.
Ah, it says, "Suddenly like this." If it was done before, I don't think there is a possibility of ↑.
© 2023 OneMinuteCode. All rights reserved.