[英]problem on adding ssh key to github - permission denied
I generated the SSH
key using the command: $ ssh-keygen
, It prompted for a filename and phrase, which I provided and generated the corresponding file.我使用以下命令生成了
SSH
密钥: $ ssh-keygen
,它提示输入文件名和短语,我提供并生成了相应的文件。 Then from github.com
I added the SSH
key from settings>SSH and GPG keys
where I pasted the key in the generated file.然后从
github.com
我添加了SSH
从键settings>SSH and GPG keys
,其中我粘贴在所生成的文件中的密钥。 Then I hit the command $ ssh -T git@github.com
in the terminal which gave me a : Permission denied (publickey).
然后我在终端中点击命令
$ ssh -T git@github.com
,它给了我一个: Permission denied (publickey).
message.信息。 What does this message mean and why am I getting this?
此消息是什么意思,为什么我会收到此消息? Previously I didn't have trouble with this.
以前我没有遇到这个问题。
where I pasted the key in the generated file.
我在生成的文件中粘贴了密钥。
Make sure it was:确保它是:
Check also you have added your private key to the ssh-agent .检查您是否已将您的私钥添加到 ssh-agent 。 (in order to not enter the passphrase every time)
(为了不每次都输入密码)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.