在哪里可以找到要粘贴到GitHub上的SSH密钥?
我正在跟踪调查。我开始了,第五步 将密钥粘贴到“密钥”字段中 我怎样才能找到钥匙?我应该在哪里打开它,然后将它粘贴到GitHub上 我试过这个在哪里可以找到要粘贴到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
$ 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"