Unlike Windows, it’s best to specify whether you want an RSA key or something like Ed25519. Open up Windows Terminal or the built-in Ubuntu command prompt (assuming you installed Ubuntu Linux). Why would you want to do this? If you primarily live in Linux for command line duties then it just makes sense to keep your keys in WSL. In fact, it’s basically the same as with the Command Prompt version. If you’re a WSL user, you can use a similar method with your WSL install. RELATED: How PowerShell Differs From the Windows Command Prompt Option 2: Generate Keys in WSL When you upgrade to a new PC you need to move those keys with your other files or risk losing access to your servers and accounts, at least temporarily. The generated SSH key will be stored in the C:Users folder by default. Just remember that the more keys you have, the more keys you have to manage. To generate an SSH key on Windows 10 or Windows 11, open Command Prompt, PowerShell, or Windows Terminal and type 'ssh-keygen' into the window and then enter a passphrase. You can do that as many times as you like. You’d follow the same process as above, but when it came time to save your key you’d just give it a different name such as “id_rsa_github” or something similar. Say, for example, you wanted to use the default keys we just generated for a server you have on Digital Ocean, and you wanted to create another set of keys for GitHub. If you wanted to create multiple keys for different sites that’s easy too. Note: If you can’t see your “.ssh” folder in File Explorer, check out our tutorial on how to show hidden files and folders in Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |