我关注GitHub guide on generating SSH keys。我在step 3,分步骤5
将您的密钥粘贴到“密钥”字段中。
我能找到钥匙吗?我在哪里打开然后将其粘贴到GitHub上?
我试过这个
$ open ~/.ssh/id_rsa.pub
Couldn't get a file descriptor referring to the console
$ ssh-rsa
ssh-rsa: command not found
如何打开.ssh
文件?
答案 0 :(得分:7)
您粘贴公共密钥(cat ~/.ssh/id_rsa.pub
)的内容generated in step 2
ssh-keygen -t rsa -C "your_email@example.com"
这产生了~/.ssh/id_rsa
(私钥)和~/.ssh/id_rsa.pub
(要在GitHub帐户上复制的公钥)。