I recently start to use Vagrant (and recently move to Ubuntu from Windows too). My goal to understand fundamentals of vagrant ssh
.
So, I'm trying to understand what vagrant ssh
actually does.
I've read What does vagrant ssh
actually do?, but I haven't understood anything.
I'll try to explain with an example:
The first time, I connect into the vagrant machine by
ssh vagrant@192.168.0.x
and typing the password.Next, I configure the keypair and connect into guest by
ssh vagrant@192.168.0.x
without typing password.Next, I try to understand how vagrant implements SSH into its own guest machine:
- In
/etc/ssh/sshd_config
, I setPasswordAuthentication no
, butvagrant ssh
still works - Delete insecure_private_key placed in
~/.vagrant.d
on the host machine, but vagrant restores it andvagrant ssh
still works. - Remove
openssh-server
in the vagrant machine and nowvagrant ssh
really doesn't work :)
- In
Please could anybody in plain English explain me how vagrant implements vagrant ssh
?
Update: Vagrant Docs: SSH explains actually what I need.