AWS Tutorials SSH into your EC2 Instance

Publicado el: 29 junio 2023
en el canal de: The Cloud Academy
443
6

This is a simple video showing how to SSH into your EC-2 Instance from your terminal (MAC)

To SSH into an EC2 instance, you can follow these steps:

1. Obtain the public IP address or public DNS of your EC2 instance. You can find this information in the EC2 console or by using the AWS CLI.

2. Open a terminal or command prompt on your local machine.

3. Change permission of your key pair: chmod 400 path-to-your-key pair

4. Use the ssh command followed by the username and the public IP address or public DNS of your EC2 instance. The command syntax is as follows:

ssh -i path/to/key/pair_file username @public_ip_address

Replace path_to_key_pair_file with the file path to your SSH key pair file (usually a .pem file). username is the username used to connect to the EC2 instance, which depends on the operating system of the instance (e.g., ec2-user for Amazon Linux, ubuntu for Ubuntu, admin for Windows instances). Finally, public_ip_address is the public IP address or public DNS of your EC2 instance.

Example command: ssh -i ~/path/to/my-key.pem ec2-user@123.45.67.89

5. If this is your first time connecting to the EC2 instance, you may see a security prompt asking you to confirm the authenticity of the host. Type yes to proceed.

6. If the SSH key pair and credentials are correct, you should now be logged into your EC2 instance via SSH.

Note: Make sure your security group allows inbound SSH traffic on port 22 from your IP address. If you are using a Windows instance, you may need to use an SSH client like PuTTY instead of the ssh command.

github repo: https://github.com/inventadenos
linkedIn:   / ufuomaeleovie  
twitter:   / eleovie  
Join the telegram group: @tca2024cohortA


En esta página del sitio puede ver el video en línea AWS Tutorials SSH into your EC2 Instance de Duración hora minuto segunda en buena calidad , que subió el usuario The Cloud Academy 29 junio 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 443 veces y le gustó 6 a los espectadores. Disfruta viendo!