Skip to content

Instantly share code, notes, and snippets.

@miyaokamarina
Created August 24, 2018 12:30
Show Gist options
  • Save miyaokamarina/2eee1786f840da7f582663248d8e65f9 to your computer and use it in GitHub Desktop.
Save miyaokamarina/2eee1786f840da7f582663248d8e65f9 to your computer and use it in GitHub Desktop.
ssh-keygen
Set-Alias ssh-agent "$env:ProgramFiles\git\usr\bin\ssh-agent.exe"
Set-Alias ssh-add "$env:ProgramFiles\git\usr\bin\ssh-add.exe"
Start-SshAgent -Quiet
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | Set-Clipboard
# Add key to GitHub
ssh -T git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment