Integrate WSL2 ssh_config with Windows PowerShell

The OpenSSH client built into Windows supports the Include directive, including with network paths (UNC). This avoids permission issues on Windows.

  1. Open PowerShell or Notepad on Windows.
  2. Edit the Windows SSH configuration file:
    # Open Windows SSH config in notepad
    notepad $env:USERPROFILE\.ssh\config
    
  3. Add the following line at the top of the file (adjusting for your actual path):
    # Include WSL2 SSH config as primary
    Include \\wsl.localhost\Ubuntu\home\<YourLinuxUser>\.ssh\config
    
  4. Save and close the file.

results matching ""

    No results matching ""