Navigation

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Creating an ed25519 SSH key in Windows 10

    Guides & Walkthroughs
    ssh key ssh linux ed25519 git windows 10 windows
    1
    1
    3630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jared Busch
      Jared Busch last edited by Jared Busch

      There are many reasons that you may need an SSH key setup on your system. Some of the most common reasons are connecting to git repository and connecting to a Linux server.

      This used to be a painful process, as Microsoft did not include OpenSSH in the operating system. Thankfully they rectified that over a year ago.

      As long as you are running an up to date version of Windows 10, you will have no problems following along.

      1. Right click on the start button and choose Windows PowerShell

        • If your system says Command Prompt you are either not up to date, or you intentionally changed it back.
          35e530ba-dcfe-4ea4-a1d6-4471af5a3e2c-image.png
      2. In the powershell windows, run the ssh-keygen command as follows:

        • The -t ed25519 tell it which algorithm to use.
        • The -C "Work Computer" is a comment that makes it easy to know what a key was created on. Update appropriately.
      ssh-keygen -t ed25519 -C "Work Computer"
      
      1. It will prompt where to save the file. You will almost always want to use the default. Just press enter to accept the default.
        0ae4e9cb-4b2d-4006-9c1f-266054bd47c7-image.png
      2. It will ask for a passphrase. Generally, I do not set a passphrase on my SSH keys, but there are valid reasons to do so depending on your environment. Press enter again for no passphrase.
        66075dcb-5ca2-4b61-ad09-35ce878d7b97-image.png
      3. It will ask you to confirm the passphrase, even if you left it blank. Press enter again.
        2ce50e56-baa5-4ef4-b7a0-72be8771b6c3-image.png
      4. It will then create your key and spit out some information about the key. Congratulations, you now have an SSH keypair available for use.
        300cdae7-1057-4883-8f73-19192a50922f-image.png

      This is why I recommend the -C command in the key generation. It puts whatever was in the comment out at the end of the public key string.
      d08f80c2-8a5a-41fb-a2f4-7a939956b237-image.png

      This useful when you add the key to things like GitLab. It will automatically title the key with that comment.
      db945d19-419f-4148-ae2b-54d93fbec0d3-image.png

      1 Reply Last reply Reply Quote
      • First post
        Last post