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 [email protected]
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
Watch video AWS Tutorials SSH into your EC2 Instance online without registration, duration hours minute second in high quality. This video was added by user Cloud Foundation Academy 29 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 62 once and liked it 2 people.