Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在哪里可以找到要粘贴到GitHub上的SSH密钥?_Git_Github_Ssh - Fatal编程技术网

在哪里可以找到要粘贴到GitHub上的SSH密钥?

在哪里可以找到要粘贴到GitHub上的SSH密钥?,git,github,ssh,Git,Github,Ssh,我正在跟踪调查。我开始了,第五步 将密钥粘贴到“密钥”字段中 我怎样才能找到钥匙?我应该在哪里打开它,然后将它粘贴到GitHub上 我试过这个 $ open ~/.ssh/id_rsa.pub Couldn't get a file descriptor referring to the console $ ssh-rsa ssh-rsa: command not found 如何打开.ssh文件?您可以粘贴公钥的内容(cat~/.ssh/id\u rsa.pub) 这产生了~/.ssh/i

我正在跟踪调查。我开始了,第五步

将密钥粘贴到“密钥”字段中

我怎样才能找到钥匙?我应该在哪里打开它,然后将它粘贴到GitHub上

我试过这个

$ open ~/.ssh/id_rsa.pub
Couldn't get a file descriptor referring to the console
$ ssh-rsa
ssh-rsa: command not found 

如何打开
.ssh
文件?

您可以粘贴公钥的内容(
cat~/.ssh/id\u rsa.pub


这产生了
~/.ssh/id\u rsa
(私钥)和
~/.ssh/id\u rsa.pub
(要复制到GitHub帐户上的公钥)。

谢谢。我还发现
cat id\u rsa.pub
显示了密钥。@Jonathe学徒是的,我在答案中添加了
cat
命令。我不知道为什么我必须等待一定时间才能接受答案。@Jonathe学徒,以防出现更好的答案。看见
ssh-keygen -t rsa -C "your_email@example.com"