Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save YannBouyeron/eba1ccfdde2917ca0005da2c4c400a2a to your computer and use it in GitHub Desktop.
Save YannBouyeron/eba1ccfdde2917ca0005da2c4c400a2a to your computer and use it in GitHub Desktop.

Activer l'authentification par SSH pour gérer vos repo github ou gist

Créer une paire de clés SSH:

ssh-keygen -t rsa

Récupérer votre clé public:

ls ~/.ssh
config  id_rsa  id_rsa.pub  known_hosts

cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3Nza.....

Ajouter votre clé public en vous connectant sur github et en allant dans les menus 'settings' puis 'SSH and GPG keys'

Activer l'authentification SSH dans un repo existant:

git remote set-url origin git@github.com:<user name>/<repo name or gist id>.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment