尝试从git repo拉取时,执行操作时出现以下错误:
然后尝试了 eval 和 ssh-add 的流程,但仍然出现了“无法打开...”的错误。
Permission denied (publickey)
fatal: The remote end hung up unexpectantly
所以我尝试使用ssh-add添加我的密钥文件,具体操作如下:
eval ssh-agent
ssh-add ./bitnami/.ssh/keyFile
并获取
Could not open a connection to your authentication agent
我正在使用Bitnami AMI和Ubuntu操作系统ssh连接到AWS EC2。
我注意到,在多次尝试评估我的ssh-agent之后,我有几个ssh-agent进程在运行,因此我执行了
killall ssh-agent
然后尝试了 eval 和 ssh-add 的流程,但仍然出现了“无法打开...”的错误。
./bitnami/.shh/keyFile
真的是你的私钥的正确路径吗? 你确定它不是./bitnami/.ssh/keyFile
吗? 你确定你添加的是你的私钥而不是公钥吗? AWS 是否拥有你的公钥? - user456814