Skip to content

Instantly share code, notes, and snippets.

@orleika
Last active August 1, 2017 07:03
Show Gist options
  • Save orleika/7c73fdb5fe9479772099 to your computer and use it in GitHub Desktop.
Save orleika/7c73fdb5fe9479772099 to your computer and use it in GitHub Desktop.
Git ssh key

Git ssh key

registration a ssh key with Github

Make ssh key

Answer yes to the all questions, and ~/.ssh/id_ed25519[.pub] are generated.

$ ssh-keygen -t ed25519 -C "[email protected]"

Register ssh key

Settings->SSH keys->add SSH key on Github page.
Paste your ~/.ssh/id_ed25519/id_ed25519.pub.

Setting connection information to config file

~/.ssh/config

Host github
  User git
  HostName github.com
  IdentityFile ~/.ssh/id_ed25519
  IdentitiesOnly yes

Check ssh key registration

$ ssh -T [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment