Customizing Open SSH Service Configuration: Remember to ro reload the config file using the command systemctl reload sshd
Correction:
Notice in my demo there was an error message displayed when the devsecops2 account tried to ssh to the ansible2 server using key3. That error was fixed by re-transporting the key3 (ed25519) to the ansible2 remote server using the command ssh-copy-id -i key3 devsecops2@ansible2. Notice in the lines below the desecop2 user gaining ssh access directly using key authentication without being prompted for a password:
devsecops2@control .ssh]$ ssh -i key3 devsecops2@ansible2
This is the system ansible2.example.local.
Last login: Sun Oct 29 07:23:11 2023 from 192.168.1.227
[devsecops2@ansible2 ~]$