简体   繁体   English

如何在 git bash 上生成密钥

[英]How to generate key on git bash

I use this command on git bash我在 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.没有其他文本行显示并卡在那里,我等了很长时间,但仍然没有像我关注的视频那样发生,我需要在 laravel homestead 上使用它。

You are supposed to click ENTER (twice if you don't want a passphrase associated to the private key).您应该单击ENTER (如果您不想要与私钥相关联的密码,请单击两次)。

That will validate the file to be saved.这将验证要保存的文件。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM