AWS —Login to Ubuntu 20

Access Remote Ubuntu via PuTTY SSH Session— AWSSeries # Episode 01

J3
Jungletronics
4 min readDec 30, 2020

--

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):

Let’s Get Started!

00#step — Open AWS Management Console, click EC2, Instances, and give your instance a name: ubuntu_20_aws

Fig 1. Naming your ubuntu instance as ubuntu_20_aws

01#step — We will need to change this dynamic IP address to a fixed IP;

Fig 2. This is a dynamic IP Address; We need a fixed one

02#step — For this go to Elastic IP — Network & Security session (1) and hit the Allocate Elastic IP address button (2).

Fig 3. Allocating a fixed IP Address

03#step — Allocating Elastic IP Address by hitting the Allocate button (1);

Fig 4. Hit Allocate to get a fresh fixed IP Address

04#step — Now AWS gives you a fixed IP Address (1);

Fig 5. This is a fixed IP Address. Hurray!

05#step — Let’s associate it with our running ubuntu instance; click Associate Elastic IP address;

Fig 6. Associating the fixed IP Address with your ubuntu instance running remotely

06#step — Maintain Instance selected (1) and choose your ubuntu_20_aws instance (2) for the association;

Fig 7. This is how to associate your fixed IP Address with your ubuntu_20_aws instance

07#Step — Return to your EC2 dashboard and you’ll see this IP associated with ubuntu_20_aws instance;

Fig 8. There you have it: a fixed IP address. Touche!

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);

Fig 9. Converting your .pem file to .ppk file

09#Step — Now click ok (1), and hit Save private key button (2);

Fig 10. Saving .ppk with the same original .pem name

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;

Fig 11. Configuring PuTTY session; first Auth, load your private key .ppk file

12#Step — Go to Connection > Data, save ubuntu as Auto-login username;

Fig 12. username for automatic login

13#Step — Now, finally, save the Session putting Host Name (or IP address) as your fixed IP for your Ubuntu instance running remotely;

Fig 13. Save the session

14#Step — Now Putty opens an alert window, saying that a NIC interface was never accessed and asking if everything is alright. Hit Yes;

Fig 14. And you are inside ubuntu instance

15#Step — Now ubuntu is under your command!

Fig 15. Congratulations! Your remote 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!:)

--

--

J3
Jungletronics

😎 Gilberto Oliveira Jr | 🖥️ Computer Engineer | 🐍 Python | 🧩 C | 💎 Rails | 🤖 AI & IoT | ✍️