---
title: "Discussion on \"How To Connect Virtual Machine To VS Code\" | Hashnode"
description: "Discussion on \"How To Connect Virtual Machine To VS Code\". Learn how to easily connect Visual Studio Code to a Vagrant or EC2. This guide walks you through the process configuring VS Code for remote access."
url: "https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Connect Virtual Machine To VS Code](https://deedeo.hashnode.dev/how-to-connect-virtual-machine-to-vs-code?utm_source=hashnode&utm_medium=feed)

Learn how to easily connect Visual Studio Code to a Vagrant or EC2. This guide walks you through the process configuring VS Code for remote access.

Jan 25, 2023 · 2 min read · deedeo.hashnode.dev  
Updated Jan 30, 2023  
Read the article

-   [#vscode](https://hashnode.com/tag/vscode)
-   [#vscode-extensions](https://hashnode.com/tag/vscode-extensions)
-   [#aws](https://hashnode.com/tag/aws)
-   [#gcp](https://hashnode.com/tag/gcp)
-   [#azure](https://hashnode.com/tag/azure)

## Written by

[daramola adeola](https://hashnode.com/@deedeo)

@deedeo

  
[View profile](https://hashnode.com/@deedeo)

Using Technology to impact lives.

## Responses 2

Markdown supported · ⌘↵ to post

[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.

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

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

Thank you so much, this was so helpful and straightforward.

[daramola adeola](https://hashnode.com/@deedeo)

[Jan 29, 2023](https://hashnode.com/posts/how-to-connect-virtual-machine-to-vs-code/63d127508d1d5da84f67a363/comment/63d2e4f8b157410d87d99e38#reply-63d624c073b9fa3341b92511)

Thank you!
