Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Visual Studio – connect to AWS instance via bastion server

I am developing some machine learning code and I just got an AWS instance for that. To access the instance, I need to

  1. ssh from the local machine to a bastion server (which is also an AWS instance).
  2. ssh from the bastion server to the development machine.

For development, I would like to attach Visual Studio to the remote machine. Is there a way for doing that? I tried adding a ~/.ssh/config file with the login credentials in the bastion server, but that does not change the available hosts listed by Visual Studio.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you need to use this plugin and follow this blog:

https://code.visualstudio.com/blogs/2019/10/03/remote-ssh-tips-and-tricks#_proxycommand

For a quick description, it will open a connection to the bastion in the background, and then it will connect to your development instance

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading