description |
---|
Set up a Hop Node on EC2 |
Create an EC2 instance to run your Hop Node
- Go to https://console.aws.amazon.com/
- Sign into your AWS account
- In the "services" search bar, type "EC2" and click on the first result
- Click "Launch Instance"
- Select "Ubuntu Server 22.04 LTS (HVM), SSD Volume Type"
- Search for the instance type "m5.large" and select this instance
- In "Key pair (login)" specify the key you want to use for SSH
- In "Configure Storage", use 100GB and choose
gp3
. - Click "Launch instance"
- Click "Launch Instances"
- Navigate to the directory where you downloaded your .pem file (for example, try
cd ~/Downloads
) - Run the following commands to set up your Hop Node directory and server access.
i. Create .ssh directory if not existing already:
mkdir ~/.ssh
ii. Move .pem file to the ssh directory:
mv ~/Downloads/hop-node.pem ~/.ssh
iii: Change the permission of the .pem file for SSH:
chmod 400 ~/.ssh/hop-node.pem
- Navigate to your EC2 instances (this should be the page you were on last)
- Select your instance and click the "Connect" button
- Choose "SSH client"
- Copy the last line labeled "Example"
In the Terminal on your local machine
- Paste the command you copied and run it
- When prompted, type "yes" and click enter