Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate key on git bash

I use this command on git bash

`$ ssh-keygen -t rsa -C "[email protected]"`

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.

like image 242
white-comet Avatar asked Sep 05 '25 03:09

white-comet


1 Answers

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.

  • /c/Users/jayson/.ssh/id_rsa (private key)
  • /c/Users/jayson/.ssh/id_rsa.pub (public key)

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

ssh-keygen -t rsa -C "[email protected]" -P ""
                                         ^^^^^

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

like image 151
VonC Avatar answered Sep 08 '25 00:09

VonC