- I have a server running sshd.
- I have a secure machine with a ssh key. I want to allow direct public key login to the server with the secure machine's key.
- I also have a laptop with a different ssh key, which may get compromised if I lose it. I want to require password on top of public key authentication, in case the key has been compromised.
Is this configuration possible to achieve modifying
Please note that this question is not about setting both public key and password for login. Instead I'm looking for a way to choose different combinations depending on the public key.