Skip to content

Instantly share code, notes, and snippets.

@faustienf
Last active July 23, 2022 10:46
Show Gist options
  • Save faustienf/ee4fe9f98b5973f16d5f03b11a2ec3f0 to your computer and use it in GitHub Desktop.
Save faustienf/ee4fe9f98b5973f16d5f03b11a2ec3f0 to your computer and use it in GitHub Desktop.
#!/bin/bash
ssh-keygen -t ed25519 -f ~/.ssh/id_faustienf
touch ~/.ssh/config
echo "
Host faustienf.github.com
HostName github.com
User faustienf
IdentityFile ~/.ssh/id_faustienf
" >> ~/.ssh/config
ssh-add ~/.ssh/id_faustienf
@faustienf
Copy link
Author

Download

curl -LJO https://gist.githubusercontent.com/faustienf/ee4fe9f98b5973f16d5f03b11a2ec3f0/raw/710f996948472ba888b3b1143cfd8b74d32f761c/add-ssh-key.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment