Skip to content

zaqueoae/ssh-github-yubikey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 

Repository files navigation

Instant connect via ssh to github with keys on your computer or with Yubikey/Onlykey

This is a simple bash script that when you run it you will have all this in an instant:

  • Create your ssh key on your computer or a resident fido 2 key with your Yubikey or Onlykey (You can choose the type of resident key).
  • The key will be added as an ssh key on your github
  • Finally git is configured

When you're done running the script, you should be able to do things like "git clone githubssh:[your-private-repository]" and touch your yubikey/onlykey

Instructions: Copy and paste these commands and Voila!

curl -o git-ssh.sh https://raw.githubusercontent.com/zaqueoae/ssh-github-yubikey/main/git-ssh.sh
bash ~/git-ssh.sh
2023-09-26.09-20-41.mp4

Explanation:

  • The difference between choosing yubikey or onlykey is that onlykey has to be unlocked using the physical keyboard, so it does not allow resident keys that require entering the pin.
  • You can try ssh connection by running this command ssh -T githubssh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages