USING TERMINAL & SSH - INSTALL JAVA IN EC2 & RUN HELLO WORLD CODE - SET UP AND PERFORM EC2 AWS

Опубликовано: 14 Май 2026
на канале: Walter Cueva
372
6

USING TERMINAL & SSH - INSTALL JAVA IN EC2 & RUN HELLO WORLD CODE - SET UP AND PERFORM EC2 AWS.

Need help? Subscribe, Comment and Like
Need code? Ask in the comments or
Email me or follow me and DM me!
  / waltersrawlife  


USING TERMINAL & SSH - INSTALL JAVA IN EC2 & RUN HELLO WORLD CODE - SET UP AND PERFORM EC2 AWS

IT582C AWS Setup
In essence MAC users use the terminal window to connect directl via ssh or sftp to ec2 instance using pem keys
Win Users must get Putty (including Puttygen) to convert pem keys to putty keys (PEM keys will NOT work with PUTTY) - with converted keys use putty to establish ssh sessions to AWS ec2 instance 
with a single EC2 Instance running (make sure you use the free tier AMI instances)
once you have it running connect to it via SSH and then in the open window do this
echo "Hello World, my NAME is .....(your name here)";date
this should print your name and the date
take a screenshot of that and submit



To access your instance:
1. Open an SSH client. (find out how to connect using PuTTY)
2. Locate your private key file (HelloWorldAssignment.pem). The wizard automatically detects the key you used to launch the instance.
3. Your key must not be publicly viewable for SSH to work. Use this command if needed:chmod 400 HelloWorldAssignment.pem
4. Connect to your instance using its Public DNS:ec2-13-56-253-69.us-west-1.compute.amazonaws.com
Example:
ssh -i "HelloWorldAssignment.pem" [email protected]
Please note that in most cases the username above will be correct, however please ensure that you read your AMI usage instructions to ensure that the AMI owner has not changed the default AMI username.