Skip to content

Instantly share code, notes, and snippets.

@0x48piraj
Created April 11, 2025 05:22
Show Gist options
  • Select an option

  • Save 0x48piraj/f1419e5be213ba5273080f72c40df9a1 to your computer and use it in GitHub Desktop.

Select an option

Save 0x48piraj/f1419e5be213ba5273080f72c40df9a1 to your computer and use it in GitHub Desktop.
Configuring Windows GitHub SSH agent
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_ed25519

Use Windows' built-in SSH agent (persistent, Windows 10+)

Open PowerShell (as admin) and run:

Get-Service ssh-agent
Set-Service -Name ssh-agent -StartupType Automatic
Start-Service ssh-agent

Finally, run:

ssh-add ~/.ssh/id_ed25519

Removing Passphrase from SSH Key (insecure, convenient)

ssh-keygen -p -f ~/.ssh/id_ed25519

Using .bash_profile (session-based, safer)

Just edit .bash_profile and add the following lines from the file.

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