Logo

How to Enable SSH Password Login on Ubuntu 24.04

Mar 14, 2024

To enable SSH password login on Ubuntu 24.04, follow the steps below:

Step 1 : Open the sshd_config file for editing:

sudo nano /etc/ssh/sshd_config

Step 2 : Find the line "PasswordAuthentication" in the file and change its value to "yes":

PasswordAuthentication yes

Step 3 : Save the changes and exit the editor.

Step 4 : Restart the SSH service to apply the changes:

sudo systemctl restart ssh

Step 5 : Test the SSH connection to verify that password login is enabled:

ssh username@your_server_ip

Congratulations! You have successfully enabled SSH password login on your Ubuntu 24.04 system.

Recommended