在Cygwin中为Git添加现有密钥

时间:2015-02-13 20:55:14

标签: git bash configuration cygwin console2

我将我的密钥设置为我们本地仓库的inpdenedent GIT安装。我可以从git bash提示符中执行所有git命令。最近,我安装了cygwin,并希望从那里使用git。

我尝试运行ssh-add命令但它不起作用...见下文

user@computer_name /cygdrive/d/folder/cheftesting
$ ssh-add /cygdrive/c/Users/user/.ssh/id_rsa
      0 [main] ssh-add 8656 stdio_init: couldn't make stderr distinct from stdout

user@computer_name /cygdrive/d/folder/cheftesting
$ git clone git@gitlab.domain.net:project-chef/proj.git
Cloning into 'proj'...
The authenticity of host 'gitlab.domain.net (ip_address)' can't be established.
ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

0 个答案:

没有答案