Last active
September 2, 2022 15:33
-
-
Save thistac/6a5387b85d17ba6cf3aa651c100165e9 to your computer and use it in GitHub Desktop.
~/.ssh/config Configuration ssh file github (OpenSSH)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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