4

I normally use Linux and everything goes very well. :-) But I have a machine which runs with Windows 7. :-\

When I try to connect to a server using Git Bash I receive following message:

The authenticity of host '144.76.35.106 (144.76.35.106)' can't be established.
ECDSA key fingerprint is 50:50:10:f7:40:50:b8:3a:20:c5:20:20:00:a0:d8:70.
Are you sure you want to continue connecting (yes/no)?

Normally I should only type yes and hit enter. But we are talking about Windows... ;-)

The problem is that in this special case the folder ~/.ssh is not writeable and I'm unable to change rights. (Why is that so is related to the security philosophy of the company. Unfortunately I have no influence here).

So I would like to know if there's any chance to change this: So when I type yes and hit enter the file known_hosts is saved in another place and most important, that the file is read next time when I access the server once again.

In other words: Where can I configure that Git look for known_hosts in another place than ~/.ssh using Windows?

Many thanks in advance!!!

4

1 回答 1

4

问题是在这种特殊情况下,文件夹~/.ssh不可写,我无法更改权限。

这里只是环境变量引用的值HOME。在您的 bash 会话中
检查它的值。echo $HOME

HOME应默认设置为%USERPROFILE%,但您可以将其设置为您选择的任何其他文件夹,您知道您有权在其中写入。

于 2015-10-24T05:12:41.970 回答