This means that you would need a set of SSH keys for Linux and one for Windows, ultimately treating your machine as 2 machines instead of one.Ī better solution would be to share the same set of SSH keys between Windows and WSL so that you have one set of keys for one machine. As a developer, this is quite compelling as you can develop for both platforms on both platforms but with only one machine and without having to constantly switch OS’s. The primary value propositions of WSL is that you can have both Linux AND Windows. The problem is that the Linux distro you install in WSL see’s itself as it’s own operating system, and it wants its own set of SSH keys. There’s a good reason for that.Īn SSH key is specific to a machine. I mention in that section that you can share SSH keys between Windows and WSL, but I never showed exactly how to do it. One of the things that I cover in that article is how to get SSH setup in WSL with Github. I recently wrote an article for Smashing Magazine that covers how I set up my personal development environment to use the Windows Subsystem for Linux version 2 (WSL 2).
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |