force SSH Key based login

A. Jorge Garcia calcpage at
Wed Dec 7 19:38:46 UTC 2011

"Markus Schönhaber" <ubuntu-users at> wrote:

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.


ubuntu-users mailing list
ubuntu-users at
Modify settings or unsubscribe at:

Try public-key authenticated ssh.
A. Jorge Garcia
Applied Math and CompSci
Sent via DROID on Verizon Wireless
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list