Skip to content

Instantly share code, notes, and snippets.

View theeternalrat's full-sized avatar

Ryan Bajno-Atkinson theeternalrat

  • Cytracom
  • Oregon
View GitHub Profile
@Jaykul
Jaykul / Agent Passthru.md
Last active May 6, 2025 11:12
SSH Agent passthru to WSL 2 (working, in Windows 11, in May 2023)

For awhile now, each time I got a new Windows laptop I would dig up strasis gist on how to set up agent forwarding for SSH in WSL2 -- but recently I tried to point someone else at it and they were very confused by it, so this is my attempt at simpler instructions.

Installation

With Chocolatey, you must use an elevated PowerShell session. If there's no choco command found, it will fall back to winget for the npiperelay install. To force using Winget even if you have choco installed, you need to download it, so you can pass parameters to it.

Easy mode: just run this in PowerShell: