- Write into
/etc/wsl.conf
[automount]
options = "metadata"
- Restart WSL (Go to powershell and write
wsl --shutdown
, then reopen WSL2 terminal) - Execute these commands below:
$ cd ~/
$ ln -s /mnt/c/Users/<your_windows_username>/.ssh .ssh
$ chmod 600 .ssh/*