Common Computer Science References
At the end of this lesson, you will be able to:
create an AWS EC2 instance
use SSH to access your instance
review your GitHub and Repl.it logins
what is SSH→ Secure Shell
if you are on a ChromeOS, use a Chrome SSH Extension, developed by Google
do a demo of how to connect to your AWS EC2 Instance (see the video "Connect to EC2 using Chrome SSH Extension")
go over how to SSH into your Debian Server:
ssh mr-coxall@xx.xx.xx.xx
go over how to create a Debian AWS EC2 Instances:
what is AWS EC2→ cloud-based servers
running Linux!
create a Security Group first, to control what can come in and out
call it "EC2 SSH Access"
we would normally just use default port 22 for SSH
open "Inbound" traffic on port 22 to all IP addresses, select SSH
you could be super picky and specify a single IP address that can come in!
leave "Outbound" traffic to "All Traffic", so you can get out on standard ports to access the internet!
now let's set up an EC2 instance
as part of AWS Academy we can get the following for free:
give it a name (ICS4U-Intro)
we will pick "Debian" as our OS
"t4g.micro: as the type of machine (ARM)
it is more computing power than you will need!
for "Key pair (login) Info", we will select "vockey"
we will select "Select existing security group" and select the security group we just created (EC2 SSH Access)
100 Gigs of SSD storage
go over how to connect to an AWS EC2 Instance with SSH:
what are SSH Keys
your private key for our EC2 instances can be found when you log into AWS Academy
look under "AWS Details, Download PEM"
user name is: admin
SSH into the instance; there are TONES of ways to do this (but SSH is probable blocked in your network!):
AWS has a built-in web AWS CloudShell
use this if you are behind a firewall that prevents SSHing out of your network
this is a complete web way to access all your AWS EC2 instances
do a demo of connecting using SSH to the new EC2 instance
almost every operating system has a terminal program:
if you are on a ChromeOS, use a Chrome SSH Extension, developed by Google
do a demo of how to connect to your AWS EC2 Instance (see the video "Connect to EC2 using Chrome SSH Extension")
you can also use custom fonts in Chrome SSH, using the "Options" and then "Custom CSS (URI)"
to confirm you have NerdFonts working try the following script:
curl https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/test-fonts.sh | bash
connect to your Debian Server using SSH and password
create a folder structure (using Linux commands ls, mkdir and cd) on your server for your code:
create an AWS Security Group
call it "EC2 SSH Access"
create an AWS EC2 Instance
call it "ICS4U-Intro"
connect to it with SSH, using SSH Keys
BEFORE doing anything else, create a user so you are NOT using the root login
adduser --shell /bin/bash --allow-bad-names -comment "First Last" first.last
su first.last
BEFORE doing anything else when you log into AWS, switch over to your login and DO NOT stay as "admin"!
create a folder structure (using Linux commands ls, mkdir and cd) on your server for your code:
clone the above repo into Replit
add a second *.txt file
add a line to it
push it back to GitHub
take a screenshot of your repo showing the 2 files
yes, there is homework, but it is not hard!
take a picture of your computer logged into AWS at home with your first EC2 instance screen; yes that is it!
make sure I can see not only the screen but your entire computer setup
upload this picture to the Google Doc for today