When I tried to connect to my vagrant VM, I didn't include the Port and realized that it wasn't connecting for a very long time. I eventually added Port 22 to the code and it worked almost immediately. I just thought I should mention it to whoever is going to try this for the first time like me.