Skip to content

Instantly share code, notes, and snippets.

@mhmdio
Last active January 4, 2022 18:53
Show Gist options
  • Save mhmdio/4a558d018e4166d1352e7bf458ccfca7 to your computer and use it in GitHub Desktop.
Save mhmdio/4a558d018e4166d1352e7bf458ccfca7 to your computer and use it in GitHub Desktop.
SSH

SSH

SSH-KEYGEN

GitLab

ssh-keygen -t ed25519 -C "mbp16" -f  ~/.ssh/gitlab-ci-mbp16-ecdsa
ssh-keygen -t ed25519 -C "dev.cloudfalcon.io" -f  ~/.ssh/gitlab-ci-dev-cloudfalcon-io-ecdsa

~/.ssh/config

~/.ssh/config

# GitLab.com
Host gitlab.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/gitlab-ci-mbp16-ecdsa

# Private GitLab instance
Host gitlab.company.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/gitlab-ci-mbp16-ecdsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment