Creating SSH Keygen Pair


Copyright Micropelt

Creating SSH Keygen Pair

  1. Open a terminal in Windows (Start → Eingabeaufforderung)

  2. Enter the following command in the terminal

    ssh-keygen -b 4096 -t rsa
  3. The following message appears

    Generating public/private rsa key pair. Enter file in which to save the key (C:\Users\<yourname>/.ssh/id_rsa):
  4. Press Enter and the following message appears

    Enter passphrase (empty for no passphrase):
  5. Press Enter and the following message appears

    Enter same passphrase again:
  6. You will get the following output

    Your identification has been saved in C:\Users\<your-name>/.ssh/id_rsa Your public key has been saved in C:\Users\<your-name>/.ssh/id_rsa.pub The key fingerprint is: SHA256:gHOBI41WNbzqjUUlGE/mGpOQLjISRo/cquDHhmg2dMg <your-name>@ABC2024-06-19 The key's randomart image is: +---[RSA 4096]----+ |.=o+A* | |=+O.*=.. | |+= Boo= | |*.o ++ . | |=E oo Q | |* +. . | |o*.++ | |o +o . | | | +----[SHA256]-----+
  7. The SSH-key will be available under C:\Users\<your-username>\.ssh

    1. id_rsa (WARNING: DO NOT SHARE THIS WITH ANYONE!)

    2. id_rsa.pub (This file can be shared)