Skip to content

SSH agent (WSL2) ​

Load a key into the agent so git/SSH stop asking every session.

bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/your_key

Tips ​

  • Prefer a dedicated key per machine (ed25519)
  • List loaded keys: ssh-add -l
  • Remove all keys from agent: ssh-add -D

See also: PowerShell SSH agent