Hi all,
This is my current setup, my host is a Windows machine where 2 VMs are installed. VM2 (192.168.56.103) will have ssh installed with FIDO2 using a Yubikey. And the VM1 (192.168.56.102) will need to connect to VM2 via SSH. Both VMs have a FreeBSD OS installed.
Preparation of VM2:
- Update the OS to latest version so the latest version of SSH is present.
- Install libfido2 shared library, u2f-dev rules, and askpass utility (OpenSSH FIDO runtime dependancies):
- pkg install u2f-devd
- pkg install libfido2
- pkg install py39-fido2
I am not 100% sure anymore these were the once that are needed as I also installed: pkg install yubikey-manager-qt, and this includes a whole bunch of things.
- Add to group:
pw group mod u2f -m user1
- Reboot
- Connect to VM2 and check : fido2-token -L
- Next create the private and public key: ssh-keygen -t ed25519-sk
- Copy public key to vm1:
- ssh-copy-id -i ~/.ssh/id_ed25519_sk.pub user1@192.168.56.102
Conclusion:
Everything seems to work fine but:
- Ssh prompts me still for a password
- Yubikey is not checked, i don't need to push the key to pass access, after the password is provide I am connected.
Thanks in advance for your advise.
This is my current setup, my host is a Windows machine where 2 VMs are installed. VM2 (192.168.56.103) will have ssh installed with FIDO2 using a Yubikey. And the VM1 (192.168.56.102) will need to connect to VM2 via SSH. Both VMs have a FreeBSD OS installed.
Preparation of VM2:
- Update the OS to latest version so the latest version of SSH is present.
- Install libfido2 shared library, u2f-dev rules, and askpass utility (OpenSSH FIDO runtime dependancies):
- pkg install u2f-devd
- pkg install libfido2
- pkg install py39-fido2
I am not 100% sure anymore these were the once that are needed as I also installed: pkg install yubikey-manager-qt, and this includes a whole bunch of things.
- Add to group:
pw group mod u2f -m user1
- Reboot
- Connect to VM2 and check : fido2-token -L
- Next create the private and public key: ssh-keygen -t ed25519-sk
- Copy public key to vm1:
- ssh-copy-id -i ~/.ssh/id_ed25519_sk.pub user1@192.168.56.102
Conclusion:
Everything seems to work fine but:
- Ssh prompts me still for a password
- Yubikey is not checked, i don't need to push the key to pass access, after the password is provide I am connected.
Thanks in advance for your advise.