I am the admin of a Ubuntu 20.04 server and I want to enable ssh login for a user through password, rather than using key pairs.
The /etc/ssh/ssh_config file on the host looks like this (<username> is replaced by its actual username):
Host*
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
Match User <username>
PubkeyAuthentication no
PreferredAuthentications password
PasswordAuthentication yes
Still, when he tries to login as:
ssh \<username>@\<host>
he receive an error:
Permission denied (publickey)
What am I doing wrong?
sshd_configfile that controls the server's permitted authentication methods. – steeldriver Jan 19 '23 at 20:55