git bash中的ssh客户端在windows上存储了known_hosts文件在哪里?

blu*_*lds 7 git ssh git-bash

我正在Windows 7上运行git bash,并希望从known_hosts文件中删除一些主机.

我似乎无法在任何地方找到.ssh目录.在Windows 7上,git bash附带的ssh客户端在哪里存储它的已知主机?

Axe*_*ine 24

在我的电脑上,它存储在

C:\Users\[username]\AppData\Local\VirtualStore\Program Files (x86)\Git\.ssh


Sto*_*ica 6

Git Bash将已知的主机存储在~/.ssh/known_hosts;-)

该文件实际上在哪里。在Git Bash中时,您可以使用vim ~/.ssh/known_hosts例如编辑文件。

-

(默认情况下〜在/ c / Users / [user_name]中,所以/c/Users/[user_name]/.ssh/known_hosts