Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5944

SSH Password Authentication Error on Ubuntu 22.04 [closed]

$
0
0

I am not able to connect to an EC2 instance through SSH using password authentication.

I have created a user called demo117 using the command "useradd demo117" on ubuntu 22.04. I also created a password for the user using the command "passwd demo117". I edited the file "/etc/ssh/sshd-config" and enabled password authentication. I then restarted the ssh service using the command "systemctl restart sshd.service". I tried to connect to the EC2 instance through SSH using password authentication using the command "ssh demo117@ip-address". But it is not working. It is throwing the error "Permission denied (publickey)".


Viewing all articles
Browse latest Browse all 5944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>