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.xand typing the password.
- Next, I configure the keypair and connect into guest by - ssh vagrant@192.168.0.xwithout 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 sshstill works
- Delete insecure_private_key placed in ~/.vagrant.don the host machine, but vagrant restores it andvagrant sshstill works.
- Remove openssh-serverin the vagrant machine and nowvagrant sshreally 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.
 
     
    