Page 1 of 1

pem on a MacOS computer

Posted: Sun Dec 22, 2024 9:39 am
by poxoja9630
This step is essential to securely access your AWS instance through your machine. Give your key pair a name that you will remember. For the purposes of this article, the key pair name is “diane-twilio-test”. Click Download Key Pair after creating your key pair. This will download the private key file ( learn more about .

pem files or public key cryptography ). Drag the file .pem to a secure location. It is absolutely crucial that you keep this file .pem secure, as it is the ONLY way to access your web application.

screenshot showing selecting or creating a key pair Here is a screenshot of the private key file also called a file .

: diane-twilio-test.pem icon file Check and launch the instance Give philippines mobile number example your AWS Dashboard time to launch the instance. Your IPv4 public IP address is the address you need to access your web application. In this article, the instance's public IP address is "52.15.127.3". The instance has been launched when the Instance State tab shows running with a green circle.

screenshot of the instance tab on the EC2 dashboard SSH into the virtual machine It's time to access the virtual machine created via AWS.

Open your terminal and locate the directory containing the .pem. Enter chmod 600 ./<NOM_VOTRE_PEM>.pem on the command line in your project directory to restrict read and write permissions to the private key file .

Image

Next, configure the environment ssh by typing ssh-add ./<NOM_VOTRE_PEM>.pem. This command adds SSH private keys to the SSH authentication agent so that you have single sign-on options. The following text is displayed on your terminal: Text Copy the code Identity added: ./diane-twilio-test.pem (./diane-twilio-test.pem) Take the public IPv4 IP address from the EC2 instances dashboard and enter the command ssh ubuntu@<VOTRE_ADRESSE_IP>to SSH into your virtual machine.



Text Copy the code The authenticity of host '52.15.127.3 (52.15.127.3)' can't be established. ECDSA key fingerprint is SHA256:q2kuBPkd8i7BuYrwtfzmnCXB6PWNJaVcaQ85RSN9cD8. Are you sure you want to continue connecting (yes/no/[fingerprint])? Transfer your project files to the remote host In the Ubuntu shell you are SSHing into, create a directory for the application you want to deploy.