Skip to content

Instantly share code, notes, and snippets.

@richardpeng
Last active July 17, 2020 02:40
Show Gist options
  • Save richardpeng/ffb716067928371aa7dda629fbd591fa to your computer and use it in GitHub Desktop.
Save richardpeng/ffb716067928371aa7dda629fbd591fa to your computer and use it in GitHub Desktop.
Yubikey FIDO2 OpenSSH #bash
#!/bin/bash
# MacOS: Install latest OpenSSH
brew install openssh
# Generate new keypair
ssh-keygen -t ecdsa-sk
# Your key pair will be in ~/.ssh/id_ecdsa_sk and can be used as normal ssh key so id_ecdsa_sk.pub can be copied to your servers authorized_keys file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment