[LINUX] AWS EC2 instance launch and ssh connection

EC2 instance (Amazon Linux 2)

The big flow is as follows.

Select AMI

スクリーンショット 2020-06-13 22.33.39.png

Key pair creation

Enter the name of the key pair and download.

key.png

Store the local key pair in the ~ / .ssh / folder and grant permissions as follows.

chmod 400 ~/.ssh/DataLamda_Outer.pem 

Confirm connection command

You can check it by right-clicking the created instance item → selecting Connection. ssh.png

Local connection

The basic command is as follows.

ssh -i Certificate path [email protected] address

Recommended Posts

AWS EC2 instance launch and ssh connection
AWS EC2 2nd SSH connection to EC2 Instance (Amazon Linux2)
[AWS] Install node.js on EC2 instance and execute sample program
Change AWS EC2 instance from t2 to t3
[SSH] About public key authentication and EC2
[Note] ssh connection from terminal with AWS LightSail
code-server online environment (4) Launch code-server on the EC2 instance
Creating an AWS EC2 EC2 Instance (Amazon Linux AMI) 2
Easy connection between Raspberry Pi and AWS IoT
Raspberry Pi and AWS IoT connection program example
How to terminate an AWS EC2 instance (remove security G and delete key pair)
Easily launch jupyter notebook on AWS and access locally
code-server online environment (3) Launch an EC2 instance with Boto3
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Deployment procedure on AWS (2) Server (EC2 instance) environment settings
Create Amazon Linux with AWS EC2 and log in
Build AWS EC2 and RDS with Terraform Terraform 3 minutes cooking
About Class and Instance
Metaclass and is instance
Launch NEM Symbol testnet node on AWS EC2 (Amazon Linux2)
Easily build network infrastructure and EC2 with AWS CDK Python