Can't SSH into a Vagrant Virtual Machine
- by Christopher Ickes
Local Vagrant machine installed at ip address 10.0.0.23 and hostname lamp-vm. Using vagrant ssh I can connect just fine and do everything I need.
This creates an ERROR - ssh vagrant@lamp-vm -v -v and I get
debug1: connect to address 10.0.0.23 port 22: Connection timed out
ssh: connect to host lamp-vm port 22: Connection timed out
My etc/hosts file contains 10.0.0.23 lamp-vm.
My .ssh/config file looks like
Host lamp-vm
User vagrant
IdentityFile ~/.ssh/vagrant
I have tried the ssh command with and without the -i /path/to/.sh/identity_file as well.
How do I connect to my Vagrant Virtual Machine using SSH?