SSH Allow Password For One User, Rest Only Allow Public Keys [duplicate]

Necromancing, but adding the following to your sshd_config should do the trick:

Match User <username>
PasswordAuthentication yes
Match all

Note that match is effective “until either another Match line or the end of the file.” (The indentation isn’t significant.)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)