How to SSH to EC2 instance | Amazon Web Services | AWS

deeplizard · Intermediate ·🧬 Deep Learning ·8y ago

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 Install Jaxx cryptocurrency wallet on Windows 10 and verify file hash
Install Jaxx cryptocurrency wallet on Windows 10 and verify file hash
deeplizard
2 Jaxx cryptocurrency wallet overview - A Blockchain Interface
Jaxx cryptocurrency wallet overview - A Blockchain Interface
deeplizard
3 Remove Jaxx cryptocurrency wallet from Windows 10
Remove Jaxx cryptocurrency wallet from Windows 10
deeplizard
4 Install Jaxx cryptocurrency wallet Chrome extension
Install Jaxx cryptocurrency wallet Chrome extension
deeplizard
5 Send Litecoin from GDAX to Jaxx wallet
Send Litecoin from GDAX to Jaxx wallet
deeplizard
6 Send Litecoin from Jaxx wallet to GDAX
Send Litecoin from Jaxx wallet to GDAX
deeplizard
7 Backup and restore Jaxx wallet with passphrase
Backup and restore Jaxx wallet with passphrase
deeplizard
8 Send Litecoin to Bittrex using Jaxx and monitor confirmations with BlockCypher
Send Litecoin to Bittrex using Jaxx and monitor confirmations with BlockCypher
deeplizard
9 Join a mining pool on Waves platform and lease Waves
Join a mining pool on Waves platform and lease Waves
deeplizard
10 ZCASH Explained | An introduction to a privacy based cryptocurrency
ZCASH Explained | An introduction to a privacy based cryptocurrency
deeplizard
11 ZCash t address creation with Jaxx wallet and private key blockchain discussion
ZCash t address creation with Jaxx wallet and private key blockchain discussion
deeplizard
12 Buy ZCash with Litecoin using the Shifty button in the Jaxx wallet
Buy ZCash with Litecoin using the Shifty button in the Jaxx wallet
deeplizard
13 Buy ZCash with Litecoin using ShapeShift - FAILURE
Buy ZCash with Litecoin using ShapeShift - FAILURE
deeplizard
14 Litecoin | Jaxx | Shapeshift | zcash | failed
Litecoin | Jaxx | Shapeshift | zcash | failed
deeplizard
15 Buy ZCash with Litecoin using ShapeShift - SUCCESS even with Jaxx issues
Buy ZCash with Litecoin using ShapeShift - SUCCESS even with Jaxx issues
deeplizard
16 Explore ZCash blockchain with Zchain block explorer
Explore ZCash blockchain with Zchain block explorer
deeplizard
17 Zchain ZCash block explorer API - PowerShell Code
Zchain ZCash block explorer API - PowerShell Code
deeplizard
18 Zchain ZCash block explorer API - Introduction
Zchain ZCash block explorer API - Introduction
deeplizard
19 Zchain ZCash block explorer API - Application
Zchain ZCash block explorer API - Application
deeplizard
20 Coinbase's Trading Platform | Previously known as GDAX
Coinbase's Trading Platform | Previously known as GDAX
deeplizard
21 Coinbase Social Security Number (SSN) Requirement Explained
Coinbase Social Security Number (SSN) Requirement Explained
deeplizard
22 Who owns Coinbase? Here are some KEY people
Who owns Coinbase? Here are some KEY people
deeplizard
23 How does Coinbase/GDAX secure Bitcoin, Litecoin, Ether?
How does Coinbase/GDAX secure Bitcoin, Litecoin, Ether?
deeplizard
24 Coinbase | HackerOne bug bounty program
Coinbase | HackerOne bug bounty program
deeplizard
25 Is Bitcoin safe at Coinbase/GDAX?
Is Bitcoin safe at Coinbase/GDAX?
deeplizard
26 Coinbase Login Demo Using Google Authenticator (2FA)
Coinbase Login Demo Using Google Authenticator (2FA)
deeplizard
27 Coinbase Pro - GDAX | Trading Interface Overview
Coinbase Pro - GDAX | Trading Interface Overview
deeplizard
28 Coinbase gives $10 in Bitcoin | Watch this before signing up
Coinbase gives $10 in Bitcoin | Watch this before signing up
deeplizard
29 Coinbase around the globe | What countries are supported?
Coinbase around the globe | What countries are supported?
deeplizard
30 Order book explained | Trading concept to know
Order book explained | Trading concept to know
deeplizard
31 Bid/Ask spread explained | Trading concept to know
Bid/Ask spread explained | Trading concept to know
deeplizard
32 Maker vs Taker | Trading concept to know
Maker vs Taker | Trading concept to know
deeplizard
33 Market Orders are Always TAKERS (HIGHER FEES)!
Market Orders are Always TAKERS (HIGHER FEES)!
deeplizard
34 Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 1
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 1
deeplizard
35 Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 2
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 2
deeplizard
36 Time-in-force explained | Trading concept to know
Time-in-force explained | Trading concept to know
deeplizard
37 Stop order explained | How to stop a loss | Coinbase Pro - GDAX
Stop order explained | How to stop a loss | Coinbase Pro - GDAX
deeplizard
38 Stop Order on Coinbase Pro - GDAX | What the WARNINGS Mean
Stop Order on Coinbase Pro - GDAX | What the WARNINGS Mean
deeplizard
39 Market price vs Last price | Trading concept to know
Market price vs Last price | Trading concept to know
deeplizard
40 Stop Order on Coinbase Pro - GDAX | How it is ACTIVATED
Stop Order on Coinbase Pro - GDAX | How it is ACTIVATED
deeplizard
41 Stop-limit order | How to set the limit | Coinbase Pro - GDAX
Stop-limit order | How to set the limit | Coinbase Pro - GDAX
deeplizard
42 Flash CRASH Part 1 | ETH/USD currency pair traded at $0.10
Flash CRASH Part 1 | ETH/USD currency pair traded at $0.10
deeplizard
43 Slippage explained | Trading concept to know
Slippage explained | Trading concept to know
deeplizard
44 Flash CRASH Part 2 | How did Coinbase Respond?
Flash CRASH Part 2 | How did Coinbase Respond?
deeplizard
45 Buy side stop-limit order | Crypto trading strategy for buying a breakout
Buy side stop-limit order | Crypto trading strategy for buying a breakout
deeplizard
46 Buy side stop-limit order | Triggering under the market price
Buy side stop-limit order | Triggering under the market price
deeplizard
47 What is an order book?
What is an order book?
deeplizard
48 What is a market?
What is a market?
deeplizard
49 What is an exchange?
What is an exchange?
deeplizard
50 What is a broker-dealer?
What is a broker-dealer?
deeplizard
51 Keras prerequisites
Keras prerequisites
deeplizard
52 Change Keras backend to Theano
Change Keras backend to Theano
deeplizard
53 #1 Order types and parameters | Trading on Coinbase Pro - GDAX
#1 Order types and parameters | Trading on Coinbase Pro - GDAX
deeplizard
54 Trading strategy for stopping a loss | Don't trade all at once!
Trading strategy for stopping a loss | Don't trade all at once!
deeplizard
55 #2 Order matching engine | Trading on Coinbase Pro - GDAX
#2 Order matching engine | Trading on Coinbase Pro - GDAX
deeplizard
56 Batch Size in a Neural Network explained
Batch Size in a Neural Network explained
deeplizard
57 Deep Learning playlist overview & Machine Learning intro
Deep Learning playlist overview & Machine Learning intro
deeplizard
58 Artificial Neural Networks explained
Artificial Neural Networks explained
deeplizard
59 Regularization in a Neural Network explained
Regularization in a Neural Network explained
deeplizard
60 Create confusion matrix for predictions from Keras model
Create confusion matrix for predictions from Keras model
deeplizard

This video teaches how to remotely connect to an EC2 instance in AWS via SSH, covering the necessary steps for secure remote access. By following this video, viewers can learn how to configure SSH and connect to their EC2 instance. This skill is essential for cloud computing and remote work.

Key Takeaways
  1. Create an EC2 instance in AWS
  2. Configure SSH for secure access
  3. Connect to EC2 instance via SSH
  4. Verify connection and access
💡 Using SSH to connect to an EC2 instance provides a secure and efficient way to access and manage remote servers in the cloud.

Related Reads

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
Up next
RNNs Explained in 60 Seconds #ai #coding #machinelearning
Ascent
Watch →