I have a ssh server running on a raspberry pi. This ssh server can only be accessed by 1 user on my ubuntu laptop only.
I have created 2 pairs of ssh keys using:
ssh-keygen -t ed25519 -o -a 100
ssh-keygen -t rsa -b 4096 -o -a 100
The 2 public keys have been appended to ~/.ssh/authorized_keys on the ssh server.
When I view the authorized_keys file, it is as below:
ssh-ed25519 ...
ssh-rsa ...
What I want is a dual authentication where BOTH key pairs are verified before establishing ssh connection. In my case, I have noticed that it is possible to connect whenever I have 1 key pair authenticated.
Kindly assist.