Skip to content

Instantly share code, notes, and snippets.

@KerberosMorphy
Last active January 5, 2021 14:37
Show Gist options
  • Save KerberosMorphy/72403a24f83494ff8f66945dffbc2e53 to your computer and use it in GitHub Desktop.
Save KerberosMorphy/72403a24f83494ff8f66945dffbc2e53 to your computer and use it in GitHub Desktop.
Création d'une clef SSH partagé Windows/WSL

Création d'une clef SSH partagé Windows/WSL

Important, la création de la clef SSH doit être fait depuis PowerShell

Depuis PowerShell:

> ssh-keygen -t ed25519 -C "YOU_USER@example.com"

Depuis WSL:

$ sudo umount /mnt/c
$ sudo mount -t drvfs C: /mnt/c -o metadata
$ ln -s /mnt/c/Users/YOU_USER/.ssh/ ~/.ssh/

Reférence expliquant la passation de permission: Can I share my SSH keys between WSL and Windows?

The End

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