Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 770 Bytes

File metadata and controls

40 lines (27 loc) · 770 Bytes

WSL

Share private SSH keys with Bash on Windows

ln -s /mnt/c/Users/MyName/.ssh/id_rsa ~/.ssh/id_rsa
ln -s /mnt/c/Users/MyName/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub

or

ln -s /mnt/c/Users/Myname/.ssh ~/.ssh

Source

Backup WSL

wsl --export MyDistro ./distro.tar

To restore:

mkdir ~/AppData/Local/MyDistro
wsl --import MyDistro ~/AppData/Local/MyDistro ./distro.tar --version 2

Then set it as default:

wsl -s MyDistro

(what is "MyDistro"? wsl -l will tell you the name it goes by)