How to SSH to EC2 instance | Amazon Web Services | AWS
Key Takeaways
This video demonstrates how to remotely connect to an EC2 instance in Amazon Web Services via SSH, covering the necessary steps and tools for secure remote access.
Full Transcript
[Music] in this video we're going to be demonstrating how to SSH into an AWS ec2 Linux instance now there's a few prerequisites that you need to meet before going forward with this video so the first is that you need to already have an ec2 instance in AWS secondly you need to have configured an inbound SSH firewall rule to your instance third you need to have saved the private key file which is a dot PEM file that you would have downloaded whenever you initially launched your instance and four you need to have an SSH client on your local machine that you'll be connecting from so most Linux distributions have an SSH client already but regardless of the operating system of the local hosts that you're using to SSH into your Linux instance with you should be able to find a free SSH client from open SSH so if you just Google open SSH and go to their website you should be able to get a client that is suitable for this task I've created videos for the first two prerequisites that I mentioned so I have one on how to create an ec2 instance in AWS and also one for configuring firewall rules in AWS and those are both posted on my channel within this AWS playlist so be sure to check those out if you've not already completed those items alright so if you've already met all four of those prerequisites then the first thing that we need to do now is login to our AWS console so I am here on the home screen of the AWS console if you're elsewhere you can get back to the home screen by clicking on this cube up in the left hand corner I'm going to go to my ec2 and since I have it under my recently visited services but it's also here under the compute menu alright and then I'm going to go to my instance and I'm just going to copy my Public DNS ipv4 so you want to copy that whole string and then save it elsewhere cuz you're going to need it in just a moment whenever you actually connect to your instance using SSH alright now that's all we're going to need from the con okay now I have a Bosch terminal opened on a local Windows machine and you can use Bosch or you can use whatever type of command-line interface that you'd like to use that is going to be compatible with the SSH client that you're using right now I am CD din - this key pair folder that I created and if I look at what's inside I see that I had this web server key pair dot pin so whenever you initially launch your ec2 instance AWS tells you to download the key pair and it comes in the form of a dot pin file so you want to save that and make sure that you can access it later so you just want to change directory into the location that you save this pin file because you need it in order to connect to your instance and then we want to check it just to make sure that the private key file isn't publicly viewable so we can do that by running chmod 400 and then passing in our pin file and what that does is it specifies that only the root user can read that file alright next now we're actually going to SSH into our instance so we do that by running the SSH command - I and then passing in our pin file and now I'm going to paste in my public DNS address so this is going to be in the format of user at Public DNS address so I paste that in and you can see that I'm using user at and then my public DNS address this is going to be the address that we copied from the AWS console at the beginning of this video alright and now I am SSH into my Linux instance running in AWS now the first time that you do this you will get a prompt that ask if you're sure that you want to trust this machine that you're connecting to and so you need to accept that so just to demonstrate that I'm here if I say LS for instance it's going to show me the file structure so that's all there is to it for connecting to a Linux instance running an AWS via SSH now a couple of commands back I had to specify user at Public DNS in order to connect to my instance the user that I use to connect was Ubuntu now I pulled this information off of Amazon site so if you're wondering what user you should use to connect to your and since I've taken notes here I'll just bring this up and we've got all of these different types of Linux images so for Amazon Linux the user name is ec2 user for rel it's either ec2 user or root for a bun - it's move on to a root CentOS is CentOS Fedora ec2 user sous as ec2 user or roof so try those depending on what type of Linux distribution you're running all right now that completes this topic for how to SSH into your Linux instance running on AWS in the next video we're going to be showing how to copy files from a local machine to your Linux instance in AWS so be sure to stay tuned for that I hope you found this video helpful if you did please like the video subscribe suggest and comment thanks for watching [Music]
Original Description
In this video, we demonstrate how to remotely connect to an EC2 instance in Amazon Web Services via SSH.
🕒🦎 VIDEO SECTIONS 🦎🕒
00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources
00:30 Help deeplizard add video timestamps - See example in the description
05:02 Collective Intelligence and the DEEPLIZARD HIVEMIND
💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥
👋 Hey, we're Chris and Mandy, the creators of deeplizard!
👉 Check out the website for more learning material:
🔗 https://deeplizard.com
💻 ENROLL TO GET DOWNLOAD ACCESS TO CODE FILES
🔗 https://deeplizard.com/resources
🧠 Support collective intelligence, join the deeplizard hivemind:
🔗 https://deeplizard.com/hivemind
🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order
👉 Use your receipt from Neurohacker to get a discount on deeplizard courses
🔗 https://neurohacker.com/shop?rfsn=6488344.d171c6
👀 CHECK OUT OUR VLOG:
🔗 https://youtube.com/deeplizardvlog
❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind:
Tammy
Mano Prime
Ling Li
🚀 Boost collective intelligence by sharing this video on social media!
👀 Follow deeplizard:
Our vlog: https://youtube.com/deeplizardvlog
Facebook: https://facebook.com/deeplizard
Instagram: https://instagram.com/deeplizard
Twitter: https://twitter.com/deeplizard
Patreon: https://patreon.com/deeplizard
YouTube: https://youtube.com/deeplizard
🎓 Deep Learning with deeplizard:
Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd
Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd
Learn TensorFlow - https://deeplizard.com/course/tfcpailzrd
Learn PyTorch - https://deeplizard.com/course/ptcpailzrd
Natural Language Processing - https://deeplizard.com/course/txtcpailzrd
Reinforcement Learning - https://deeplizard.com/course/rlcpailzrd
Generative Adversarial Networks - https://deeplizard.com/course/gacpailzrd
🎓 Other Courses:
DL Fundamentals Classic - https://deeplizard.c
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from deeplizard · deeplizard · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Install Jaxx cryptocurrency wallet on Windows 10 and verify file hash
deeplizard
Jaxx cryptocurrency wallet overview - A Blockchain Interface
deeplizard
Remove Jaxx cryptocurrency wallet from Windows 10
deeplizard
Install Jaxx cryptocurrency wallet Chrome extension
deeplizard
Send Litecoin from GDAX to Jaxx wallet
deeplizard
Send Litecoin from Jaxx wallet to GDAX
deeplizard
Backup and restore Jaxx wallet with passphrase
deeplizard
Send Litecoin to Bittrex using Jaxx and monitor confirmations with BlockCypher
deeplizard
Join a mining pool on Waves platform and lease Waves
deeplizard
ZCASH Explained | An introduction to a privacy based cryptocurrency
deeplizard
ZCash t address creation with Jaxx wallet and private key blockchain discussion
deeplizard
Buy ZCash with Litecoin using the Shifty button in the Jaxx wallet
deeplizard
Buy ZCash with Litecoin using ShapeShift - FAILURE
deeplizard
Litecoin | Jaxx | Shapeshift | zcash | failed
deeplizard
Buy ZCash with Litecoin using ShapeShift - SUCCESS even with Jaxx issues
deeplizard
Explore ZCash blockchain with Zchain block explorer
deeplizard
Zchain ZCash block explorer API - PowerShell Code
deeplizard
Zchain ZCash block explorer API - Introduction
deeplizard
Zchain ZCash block explorer API - Application
deeplizard
Coinbase's Trading Platform | Previously known as GDAX
deeplizard
Coinbase Social Security Number (SSN) Requirement Explained
deeplizard
Who owns Coinbase? Here are some KEY people
deeplizard
How does Coinbase/GDAX secure Bitcoin, Litecoin, Ether?
deeplizard
Coinbase | HackerOne bug bounty program
deeplizard
Is Bitcoin safe at Coinbase/GDAX?
deeplizard
Coinbase Login Demo Using Google Authenticator (2FA)
deeplizard
Coinbase Pro - GDAX | Trading Interface Overview
deeplizard
Coinbase gives $10 in Bitcoin | Watch this before signing up
deeplizard
Coinbase around the globe | What countries are supported?
deeplizard
Order book explained | Trading concept to know
deeplizard
Bid/Ask spread explained | Trading concept to know
deeplizard
Maker vs Taker | Trading concept to know
deeplizard
Market Orders are Always TAKERS (HIGHER FEES)!
deeplizard
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 1
deeplizard
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 2
deeplizard
Time-in-force explained | Trading concept to know
deeplizard
Stop order explained | How to stop a loss | Coinbase Pro - GDAX
deeplizard
Stop Order on Coinbase Pro - GDAX | What the WARNINGS Mean
deeplizard
Market price vs Last price | Trading concept to know
deeplizard
Stop Order on Coinbase Pro - GDAX | How it is ACTIVATED
deeplizard
Stop-limit order | How to set the limit | Coinbase Pro - GDAX
deeplizard
Flash CRASH Part 1 | ETH/USD currency pair traded at $0.10
deeplizard
Slippage explained | Trading concept to know
deeplizard
Flash CRASH Part 2 | How did Coinbase Respond?
deeplizard
Buy side stop-limit order | Crypto trading strategy for buying a breakout
deeplizard
Buy side stop-limit order | Triggering under the market price
deeplizard
What is an order book?
deeplizard
What is a market?
deeplizard
What is an exchange?
deeplizard
What is a broker-dealer?
deeplizard
Keras prerequisites
deeplizard
Change Keras backend to Theano
deeplizard
#1 Order types and parameters | Trading on Coinbase Pro - GDAX
deeplizard
Trading strategy for stopping a loss | Don't trade all at once!
deeplizard
#2 Order matching engine | Trading on Coinbase Pro - GDAX
deeplizard
Batch Size in a Neural Network explained
deeplizard
Deep Learning playlist overview & Machine Learning intro
deeplizard
Artificial Neural Networks explained
deeplizard
Regularization in a Neural Network explained
deeplizard
Create confusion matrix for predictions from Keras model
deeplizard
More on: Linux & CLI
View skill →Related Reads
📰
📰
📰
📰
Help Choosing Neural Network Architecture for Matrix Classification
Reddit r/deeplearning
How to Choose the Best Deep Learning Model for Medical Imaging
Medium · Deep Learning
Another Way to Read Neural Geometry
Medium · Data Science
Another Way to Read Neural Geometry
Medium · Deep Learning
Chapters (3)
Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources
0:30
Help deeplizard add video timestamps - See example in the description
5:02
Collective Intelligence and the DEEPLIZARD HIVEMIND
🎓
Tutor Explanation
DeepCamp AI