Thanks to the instructions for WSL 2 of the wsl-ssh-agent
project, KeeAgent works great in WSL 2 now:
https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility
The approach uses minimal and well maintained tools.
- Install the KeeAgent plugin for KeePass (2.x).
- The
OpenSSH Authentication Agent
Windows service must be stopped. For being sure that it stays stopped, even after rebooting, disable the service (when it is stopped). - Open the KeeAgent options via KeePass Menu -> Tools -> Options -> KeeAgent Tab.
Enable the option
Enable agent for Windows OpenSSH (experimental)