Yubico Key Setup SSH Password-less Auth
Following Yubico Key Setup, if you looking to setup Yubico Key to allow to do SSH password-less Auth’s, follow the steps bellow
- Generate a ecdsa-sk cert
$ ssh-keygen -t ed25519-sk -C "<github_email>"
$ cat ~/.ssh/id_ed25519_sk.pub
$ # copy the pubkey to the to the clipboard
- Add the public key to the GitHub
- Configure your
~/ssh/config
in the following way (similar)
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_sk
IdentitiesOnly yes
- Restart ssh-agent and add the new key to the SSH agent
$ eval $(ssh-agent -s)
$ ssh-add ~/.ssh/id_ed25519_sk
- Test the SSH Connection
$ ssh -T git@github.com
$ # you should expect to see something like this
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
Enjoy!