![]() ![]() That concludes this blog post where I showed how to configure VS Code for Remote Development for Linux based EC2 instances hosted on AWS. On the bottom left corner of VS Code, the Status bar will indicate the connection status. Ive been using the VSCode remote ssh feature for a while now and I really cant see myself switching to another editor unless it also had a similar feature. You will then be prompted to verify the fingerprint. Right-click the SSH target, you’ll be presented with 2 options: Connect to Host in Current Window and Connect to Host in New Window. Once installed, you’ll notice the Remote Explorer icon appear on the Activity Bar, select the icon, this will bring the Primary Side Bar into view.įrom the dropdown, select SSH Targets, a list of SSH Targets will be listed. Next you’ll need to install the Remote - SSH Extension in VS Code. Visual Studio Code Remote Development Extension Pack The Remote Development extension pack allows you to open any folder in a container, on a remote machine, or in the Windows Subsystem for Linux (WSL) and take advantage of VS Codes full feature set. The section must conform to the below structure: 1 Let’s add a new section containing our EC2 details. To modify the config file, use the below commands: I’ve created a new EC2 instance, new key-pair and moved the private key from the Downloads directory to the ~/.ssh directory. To get started you’ll need an SSH Config file, on macOS it can be located in the ~/.ssh directory. This blog post assumes the reader has some basic knowledge of SSH and is using macOS or a Linux based OS. I had no desire of using the VI text editor (that’s too hardcore) and preferred to use VS Code from my MacBook Pro as it has some pretty useful extensions installed. Recently I had to take part in a web development project, the remote development environment ran on an EC2 instance. On the rare occasion that I need to connect to Linux based EC2 instances, I normally use Session Manager through the AWS Management Console or use the Session Manager plugin for AWS CLI. In this blog post i’ll show you how to configure VS Code to allow remote development for Linux based EC2 instances hosted on AWS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |