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
Restrict Password-Based SSH Access Per User and Allow Key Authentication
linuxssh
Related Topic
- Linux – ssh still accepts password authentication despite being configured for public-key only authentication (which works!)
- Linux SFTP – Allow SFTP but Disallow SSH
- Ssh – Temporarily disable ssh public key authentication from client
- SSH Key Authentication – How to Set Up SSH Key Authentication Using LDAP
Best Answer
You can add "Match" sections to match on particular users or groups at the bottom of sshd_config, like:
or