windowsgithomestead

How to generate key on git bash


I use this command on git bash

`$ ssh-keygen -t rsa -C "eu.json@gmail.com"`

After that, these line of text show.

`'Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/jayson/.ssh/id_rsa):'.`

There is no other line of text shown and stuck there, I wait for long time and still nothing happen not like the video that i follow, I need to use it on laravel homestead.


Solution

  • You are supposed to click ENTER (twice if you don't want a passphrase associated to the private key).

    That will validate the file to be saved.

    If you don't want to be "stuck there", you can also type:

    ssh-keygen -t rsa -C "eu.json@gmail.com" -P ""
                                             ^^^^^
    

    That would generate a key pair without passphrase (the private key won't be encrypted).