Is it possible to disable PASSWORD SSH access to user but to allow Key authentication on a per user basis ? I mean, I have a userA whom I don't want to give Password based access BUT I wan't him to only use key authentication to access the server(s). Thanks
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
you can add "Match" sections to match on particular users or groups at the bottom of sshd_config, like:
or
|
|||
|
|
|
you should look into
I think what you're looking for is
change it to no and don't forget to restart sshd |
|||||
|
|
Just lock the passwords of the users you don't want to log in with passwords:
Then, place a valid public key in their |
|||