Can't SSH into a Vagrant Virtual Machine
        Posted  
        
            by 
                Christopher Ickes
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Christopher Ickes
        
        
        
        Published on 2012-10-23T16:25:36Z
        Indexed on 
            2012/10/23
            17:04 UTC
        
        
        Read the original article
        Hit count: 587
        
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?
© Server Fault or respective owner