# 키페어에 권한 부여 ('읽기')
chmod 400 "gunu_key.pem"
# ssh 프로토콜에 key 정보 (인증 정보)를 포함해서 내 가상머신의 프라이빗 ip주소(ubuntu@13.124.88.249)에 접속 요청을 보냄
ssh -i "gunu_key.pem" ubuntu@13.124.88.249
Last login: Wed Jul 31 20:13:19 on ttys000
╭─gunu@baggeon-uui-MacBookPro ~/Desktop/EC2 접속키
╰─$ chmod 400 "gunu_key.pem"
╭─gunu@baggeon-uui-MacBookPro ~/Desktop/EC2 접속키
╰─$ ssh -i "gunu_key.pem" ubuntu@ec2-13-124-88-249.ap-northeast-2.compute.amazonaws.com
The authenticity of host 'ec2-13-124-88-249.ap-northeast-2.compute.amazonaws.com (13.124.88.249)' can't be established.
ED25519 key fingerprint is SHA256:RLp3yjjSaftD4O1P4sczvg8rJCeBrq1eOp5iolkDI8A.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? ㅛ yes
Warning: Permanently added 'ec2-13-124-88-249.ap-northeast-2.compute.amazonaws.com' (ED25519) to the list of known hosts.
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1022-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Wed Jul 31 11:13:45 UTC 2024
System load: 0.01 Processes: 98
Usage of /: 21.1% of 7.57GB Users logged in: 0
Memory usage: 22% IPv4 address for eth0: 172.31.3.97
Swap usage: 0%
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Wed Jul 31 11:11:45 2024 from 13.209.1.59
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ip-172-31-3-97:~$ ls