AWS EC2 Ubuntu Login Using Password | No PEM Key | Easy Step-by-Step Guide

Опубликовано: 16 Май 2026
на канале: Prashik Kamble
13
2

In this video, I will show you how to log into your AWS EC2 Ubuntu instance using a password instead of a PEM key. This is useful when you want to access your server easily without dealing with key files.

🚀 What you will learn:

How to enable password authentication in Ubuntu EC2
How to set a password for your user
How to modify SSH configuration
How to connect using password login (WinSCP / SSH)
Difference between PEM key and password login

⚡ Commands used in this video:

sudo passwd ubuntu
sudo nano /etc/ssh/sshd_config_d/*.conf

Change these values:
PasswordAuthentication yes

sudo systemctl restart ssh

🔐 Important Notes:

Make sure your Security Group allows port 22 (SSH)
Password login is less secure than PEM key (use carefully)
Always disable password login in production environments

💡 Tools Used:

AWS EC2
Ubuntu Server
WinSCP / PuTTY

👍 If you found this helpful, don’t forget to:

Like 👍
Share 🔄
Subscribe 🔔