Skip to content

Instantly share code, notes, and snippets.

@p0unter
Created August 17, 2025 15:57
Show Gist options
  • Select an option

  • Save p0unter/ccdec6dadc4901e64919f3cd0dbe1139 to your computer and use it in GitHub Desktop.

Select an option

Save p0unter/ccdec6dadc4901e64919f3cd0dbe1139 to your computer and use it in GitHub Desktop.
CLI github login with SSH / Token.

Generate SSH Key

ssh-keygen -t ed25519 -C "your_email@example.com"
# or
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Copy Generated Key

cat ~/.ssh/id_ed25519.pub

SSH instead of HTTPS

git remote set-url origin git@github.com:p0unter/iam_linux.git

Check Github Connection

ssh -T git@github.com

Permanent

git config --global credential.helper store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment