---
title: "Comment by Funmilayo Fagoyinbo on \"How To Connect Virtual Machine To VS Code\" | Hashnode"
description: "When I tried to connect to my vagrant VM, I didn&#39;t include the Port and realized that it wasn&#39;t connecting for a very long time. I eventually added Port"
url: "https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363/comment/63d3039ab157410d87d9a039"
---

[Discussion](https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363)

Comment [How To Connect Virtual Machine To VS Code](https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363)

[Funmilayo Fagoyinbo](https://hashnode.com/@Adefunmilayo)

[Jan 26, 2023](https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363/comment/63d3039ab157410d87d9a039)

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.
