Skip to content

Generating SSH Key

Linux / MacOS / Windows (WSL)

  1. Open a terminal and run command ssh-keygen.
    Bash
    Generating public/private ed25519 key pair.
    Enter passphrase for "/home/prasad/.ssh/id_ed25519" (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/prasad/.ssh/id_ed25519
    Your public key has been saved in /home/prasad/.ssh/id_ed25519.pub
    The key fingerprint is:
    SHA256:qAO+CZYyMHPVkZKvd4pn/I1icXC0VMi3WXBf43hCkVo prasad@thinkpad
    The key's randomart image is:
    +--[ED25519 256]--+
    |     ..o oo..oo..|
    |    o...= ..oEo..|
    |    .o.o o +oo.o |
    |   .  o.o o.  o  |
    |+ o  ..oS        |
    |.=....o o        |
    |+o. o+ =         |
    |oo o..B  o       |
    |  o  + oo .      |
    +----[SHA256]-----+
    
  2. This should create two files in default .ssh/ directory.
    Bash
    .ssh/
    ├── id_ed25519
    └── id_ed25519.pub
    
    1 directory, 2 files