3

尝试从 git repo 中提取,这样做时出现此错误:

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 操作系统连接到 AWS EC2。

我注意到在评估我的 ssh-agent 的几次不同尝试之后,我有几个 ssh-agent 进程,所以我做了一个

killall ssh-agent

然后再次尝试 eval、ssh-add 过程,仍然得到“无法打开...”错误

4

1 回答 1

1

Creating a config file at ~/.ssh/ and adding

IdentityFile ~/.ssh/keyFile

Solved the issue. This doesn't answer the above question, but it does solve the problem as a whole.

Found by attempting to ssh into the server with the -v flag helped me see that the key files were not being read (obviously).

于 2013-08-19T18:20:13.713 回答