2023. 11. 18. 23:19ㆍGenerate/EC2
In order to actually use the EC2 Instance, you need to be able to connect to the server based on public IPv4.
You downloaded the sparta_keypair.pem file when you were creating the EC2 Instance, you can find it in the Download directory in Ubuntu.
Check the sparta_keypair.pem
Based on the file, you are able to connect the server with SSH.
Command: ssh -i < encoding key file > <user Id in the Server>@ <public IPv4 address>
ssh -i sparta_keypair.pem ubuntu@ <public IPv4 address>
@: The standard for isolating public IPv4 address.
command: yes
The chmod command is not working on the Windows OS.
So, I moved the .pem file to the Ubuntu system.
It's working the chmod command on the Ubuntu.
ssh -i sparta_keypair.pem ubuntu@ <public IPv4 address>
The command working on the Ubuntu.
So, I connected on the EC2 Instance.
'Generate > EC2' 카테고리의 다른 글
AWS: EC2 instance 삭제 및 재발급 후 기존 EC2 instance에 다시 적용 (1) | 2023.12.01 |
---|