Is it possible to connect SSH within VS Code (for MacOS) to my AWS instance?
I would like to use it the same way I do with docker containers. Modify my code inside the AWS instance and use the same compute power.
Thanks
Is it possible to connect SSH within VS Code (for MacOS) to my AWS instance?
I would like to use it the same way I do with docker containers. Modify my code inside the AWS instance and use the same compute power.
Thanks
HOW TO CONNECT TO AWS INSTANCE (EC2)
See my example
#Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host <enter hostname>
HostName <enter hostname>
User ubuntu
IdentityFile ~/.ssh/mypemfile.pem
SOLVED
The steps are:
1 - Create your instance (let's say a EC2 t2.micro from the Ubuntu18 image)
2 - Create a ssh configuration file (let's call it ssh_config_aws)
3 - Following the steps in the doc:
Host
User ubuntu (ec2-user if you use Amazon IMA)
HostName
IdentityFile
Then you will see the connection available in the menu of Remote Connections Plugin.
Simply connect to it and your Visual Studio Code window will attach to the running instance.