我已经成功地生成了ssh密钥,但是当我尝试将它添加到ssh-agent中时,它显示以下错误
** 03/03/2020 19:39.04 /home/sahilra/Desktop/DOcs/Web_Dev/git_projects ** ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/mobaxterm/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/mobaxterm/.ssh/id_rsa.
Your public key has been saved in /home/mobaxterm/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ISmtoclG2l6aWE9wHa4AS/4jzXKy/cVJk93sU7XJNw4 sahilra@SAHILRA01
The key's randomart image is:
+---[RSA 2048]----+
|.. . |
|oo + o |
|..+ + * . . |
| =+* = .o.o o o|
|.+B*= +S. o E =.|
| =B*. o o . . o o|
|..+.. + o . |
| . . . |
| . |
+----[SHA256]-----+
$SSH_AUTH_SOCk=/tmp/ssh-I4LHdw/agent.2102和代理也在运行
**/home/sahilra/Desktop/DOcs/Web_Dev/git_projects ** ssh-add ~/.ssh/id_rsa
Could not add identity "/home/mobaxterm/.ssh/id_rsa": agent refused operation
这个问题仍然存在
发布于 2021-08-27 13:33:05
发布于 2020-06-04 19:14:08
我不确定你是否能解决这个问题,但我遇到了同样的问题。
因此您的公钥保存在这里:您的公钥保存在/home/mobaxterm/.ssh/id_rsa.pub中
您可以裁剪> /home/mobaxterm/.ssh/id_rsa.pub,然后将其添加到您的github帐户中。
您可能仍会遇到连接问题...对我来说,最好的办法是在本地配置github,使用
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
https://stackoverflow.com/questions/60509777
复制相似问题