June 29, 2020 / Nirav Shah
In this blog we will learn about how to set up password on your running instance,
Prerequisites
Step 1
Connect to your Linux ec2 instance via putty (/ssh). Here I am connecting via putty.

Step 2
Login to your running instance

Step 3
Execute below command:
sudo passwd ec2-user
And write the password

Step 4
Now it’s time to go to the directory
/etc/ssh
and follow below command
sudo vim sshd_config

Step 5
After you apply the command, you will see windows like this

Press “i” and
Now go to the “passwordauthentication” and write “yes”
After change, it please save it
Perfect
Step 6
Last command is
sudo service sshd restart

and disconnect and login again using username and password You will see like this,


Nirav Shah is the Director of Eternal Web Pvt Ltd, an AWS Advanced Consulting Partner and certified Odoo Partner based in the UK. With over a decade of experience in cloud computing, digital transformation, and ERP implementation, Nirav helps enterprises adopt the right technology to solve complex business challenges. He specialises in AWS infrastructure, Odoo ERP, and web development solutions for businesses across the UK and beyond.
Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.