force SSH Key based login

Markus Schönhaber ubuntu-users at
Wed Dec 7 19:16:46 UTC 2011

07.12.2011 17:51, Jacob Mansfield:

> is it possible to disable password-based login for a specific user account?
> I need to let them use SSH-Key based login only, yet allow one other user to stick with the password-based authentication.
> thanks.

Try something like

Match User <username>
	PasswordAuthentication no

in sshd_config.


More information about the ubuntu-users mailing list