본문 바로가기
DevTools

Development on AWS EC2 through Termius and VSCode

by llHoYall 2022. 1. 30.

Create AWS EC2 Instance

> Go to the console of AWS.

https://console.aws.amazon.com/console/

 

> Select the Launch a virtual machine.

 

> Select a machine that you want to use.

I just select this machine. 😁

 

> Select instance type and click the Review and Launch button

 

> Click Launch button

 

> Create a new key pair for SSH.

Input the name of the key pair and download it.

You have to keep this file important.

And click the Launch Instances button.

 

Now, you can see your instance.

 

Access AWS EC2 through Termius

> Install Termius

https://termius.com

$ brew install --cask termius

 

> Open Termius

Sign up or Log in to Termius.

 

> Create NEW HOST

Click + NEW HOST button

Input the address from the AWS EC2.

And next, Click Keys button.

Click + KEY button.

Input the Label and downloaded the key pair file.

Now, input username as ec2-user.

Enjoy your instance!

 

Access AWS EC2 through VSCode

> Install Remote - SSH extension.

 

> Connect to host

 

> Add new SSH host

 

> Enter SSH connection command

Input the name of this connection.

 

> Select SSH configuration file to update

I selected the configuration file in the specified user's home directory.

 

> Configure the SSH connection

Open the config file and edit it.

Input AWS EC2 instance address into the HostName field, ec2-user into User field, and path of downloaded key pair file into IdentityFile field.

 

> Access to AWS EC2

Enjoy it~!!

'DevTools' 카테고리의 다른 글

[GCP] Cloud Functions with YouTube Data API  (0) 2023.11.16
[AWS] Windows EC2 Instance 사용하기  (4) 2023.01.12
[VS Code] Extensions 추천 - (2021.09.17)  (2) 2021.09.17
정규 표현식 (Regular Expression)  (0) 2021.03.06
[PyCharm] Shortcuts  (0) 2021.01.31

댓글