Vagrant asks for password after updating SSH key

I will redo my SSH key after switching to a new machine and just copy my existing Vagrant custom box that I packaged.

When I tried to enter ssh in the field, I got an error REMOTE HOST IDENTIFICATION HAS CHANGED. So I removed the input from known_hostsand ssh'd back to the field. The new key has been accepted, but now every time I get ssh, I need to enter the default firewall password, and not just use my ssh key.

What am I missing here?

+2
source share
2 answers

" "?
, Host ?
, .

/ :

(IdentityFile ):

vagrant ssh-config

:

ssh-keygen -y -f private_key > public_key
cat public_key

public_key public_key ( ).

cat ~/.ssh/authorized_keys
+1

, , , . vagrant ssh-congfig , 2200 2222, . 2200, . , , .

0

Source: https://habr.com/ru/post/1622817/


All Articles