AWS —Login to Ubuntu 20
Access Remote Ubuntu via PuTTY SSH Session— AWSSeries # Episode 01
Hi, let’s access our remote ubuntu on the cloud?
In the previous episode, we have deployed ubuntu 20.04 on the cloud.
Now we need to get there inside that Linux distribution.
We had download a key pair that gives us the right to access ubuntu via SSH.
Programs we will need (get it here):
putty - To open a session and access ubuntu instance on the cloud
puttygen - To make the convertion to .pem to .ppk file
Let’s Get Started!
00#step — Open AWS Management Console, click EC2, Instances, and give your instance a name: ubuntu_20_aws
01#step — We will need to change this dynamic IP address to a fixed IP;
02#step — For this go to Elastic IP — Network & Security session (1) and hit the Allocate Elastic IP address button (2).
03#step — Allocating Elastic IP Address by hitting the Allocate button (1);
04#step — Now AWS gives you a fixed IP Address (1);
05#step — Let’s associate it with our running ubuntu instance; click Associate Elastic IP address;
06#step — Maintain Instance selected (1) and choose your ubuntu_20_aws instance (2) for the association;
07#Step — Return to your EC2 dashboard and you’ll see this IP associated with ubuntu_20_aws instance;
08#Step — Now open puttygen, locate tour ubuntu_20_server_keys.pem from the previous episode and load it with the same name, now with the extension .ppk (putty private key);
09#Step — Now click ok (1), and hit Save private key button (2);
10#Step — You will end with ubuntu_20_server_keys.ppk file;
11#Step — Now open PuTTY, SSH configuration, in Auth save the location of your recently saved .ppk key;
12#Step — Go to Connection > Data, save ubuntu as Auto-login username;
13#Step — Now, finally, save the Session putting Host Name (or IP address) as your fixed IP for your Ubuntu instance running remotely;
14#Step — Now Putty opens an alert window, saying that a NIC interface was never accessed and asking if everything is alright. Hit Yes;
15#Step — Now ubuntu is under your command!
That’s all for now!
In the next post, we will be installing the certificates of LetsEncrypt in our remote mosquito broker services.
Bye!
Credits & References
Microgênios — Treinamento em Sistemas Embarcados — Microchip Regional Partner — Microchip Certified Brazilian Training Education Startup & a Simplício-owned enterprise o/
AWS Essentials — Learn from AWS technical instructors about the AWS Platform, global infrastructure, security, and the core services by Udemy
This course is delivered by actual AWS technical instructors who teach fundamental and advanced AWS courses around the globe. In this course, you will learn essential concepts of the AWS global infrastructure, platform, and core services, so that you can begin, or, continue your journey of growing your business using AWS Cloud technology. We encourage your participation on the discussion board and feel free to ask any questions about the course or AWS certification.
AWS Documentation by Amazon
Related Posts
00#Episode — AWS Essentials — Intro to AWS — AWSSeries
01#Episode — AWS — Login to Ubuntu 20 — Access Remote Ubuntu via PuTTY SSH Session — AWSSeries (this one)
02#Episode — AWS — LAMP — Prep our Remote Ubuntu to Run an MQTT Broker — AWSSeries
03#Episode — AWS — IP Plus DNS — How to Link Your Sub/Domain Name With Your AWS Instance Running Ubuntu — AWSSeries
04#Episode — AWS — LetsEncrypt — How To Installing the TLS / SSL LetsEncrypt Certificate on Remote Ubuntu Server 20.04 — AWSSeries
05#Episode — Soon… Be tuned!:)