You can achieve this by using the "Match" directive in sshd_config then restarting the sshd service.
Code: Select all
Match Group linuxsa
AuthenticationMethods publickey,password
Hope this helps.
Code: Select all
Match Group linuxsa
AuthenticationMethods publickey,password