Skip to content

Instantly share code, notes, and snippets.

@thistac
Last active September 2, 2022 15:33
Show Gist options
  • Save thistac/6a5387b85d17ba6cf3aa651c100165e9 to your computer and use it in GitHub Desktop.
Save thistac/6a5387b85d17ba6cf3aa651c100165e9 to your computer and use it in GitHub Desktop.
~/.ssh/config Configuration ssh file github (OpenSSH)
# If you don't already have an SSH key:
# ssh-keygen -t ed25519 -C "example@email.com"
# Generating public/private ed25519 key pair.
# Enter file in which to save the key (/home/user/.ssh/id_ed25519): /home/user/.ssh/[save-name]
# ......
# Then copy pub to github config page:
# cat /home/user/.ssh/[save-name].pub | xclip -i
# In /home/user/.ssh/config put:
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
RequestTTY no # (-T option)
IdentityFile /home/user/.ssh/[save-name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment