Skip to content

Windows SSH Setup

Stanislav Osipov edited this page Jul 28, 2021 · 1 revision

This guide will help you to set up SSH on Windows easily and hassle free.

Note: SSH key will be without the passphrase. If this is a security issue for you, please look for another guide.

Open Git Bash

  1. Download and install Git.

  2. Right click inside any folder and launch Git Bash

    image

Generating SSH key

  1. (Git Bash) Type ssh-keygen -t ed25519 -C "your_email@example.com"

  2. When you're prompted Enter a file in which to save the key (/c/Users/you/.ssh/id_ed25519): press Enter.

    This accepts the default file location.

  3. When you're prompted Enter passphrase (empty for no passphrase): and Enter same passphrase again: - don't type anything, just press Enter.

    This password less approach is crucial for hassle free SSH connection.

Adding a new SSH key to your GitHub account

  1. (Git Bash) Type clip < ~/.ssh/id_ed25519.pub

    This copies the contents of the key to your clipboard.

  2. Navigate to your Github Account>Settings>SSH and GPG keys.

  3. Click New SSH key.

    In the "Title" field, add a descriptive label for the new key.

    Paste your key into the "Key" field.

  4. Click Add SSH key.

  5. If prompted, confirm your GitHub password.

Testing your SSH connection

  1. (Git Bash) Type ssh -T git@github.com

    You may see a warning like this:

    > The authenticity of host 'github.com (IP ADDRESS)' can't be established.
    > RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
    > Are you sure you want to continue connecting (yes/no)?
    
  2. Type yes and press Enter

  3. Verify that the resulting message contains your username.

    > Hi username! You've successfully authenticated, but GitHub does not
    > provide shell access.
    

Have fun! 🎁 🚀