-1
I have an Amazon ec2 instance running Ubuntu. I set it up with a key pair to authenticate, but now I want password authentication. How do I remove the key pair and replace it with a password?
-1
I have an Amazon ec2 instance running Ubuntu. I set it up with a key pair to authenticate, but now I want password authentication. How do I remove the key pair and replace it with a password?
0
It is strongly recommended to use a key to access your instance. But if you really want to do it. This is how:
/etc/ssh/sshd_config
PasswordAuthentication no
and change it to PasswordAuthentication yes
sudo service ssh start
If you want to disable key authentication, change PubkeyAuthentication yes
to PubkeyAuthentication no