Where does the ssh client in git bash store it's known_hosts file on windows?
18,104
Solution 1
Git Bash stores the known hosts in ~/.ssh/known_hosts
;-)
Wherever that file really is. When you are in Git Bash, you can edit the file with vim ~/.ssh/known_hosts
for example.
--
(by default ~ is at /c/Users/[user_name] so /c/Users/[user_name]/.ssh/known_hosts
)
Solution 2
On my Windows PC it stored it in
C:\Users\[username]\AppData\Local\VirtualStore\Program Files (x86)\Git\.ssh
Solution 3
On my PC it can be found on another drive ( not on default C:/ )
H:\.ssh
Author by
blueberryfields
for(i=1;;++i)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)
Updated on July 21, 2022Comments
-
blueberryfields almost 2 years
I'm running a git bash on windows 7, and would like to remove a few hosts from the known_hosts file.
I can't seem to find a .ssh directory anywhere. Where does the ssh client included with git bash store it's known hosts, on Windows 7?
-
Gerard over 6 yearsIn my case it seems Git Bash doesn't use this file, while IntelliJ does use it. I used the command
git remote rename a b
-
Pitto about 4 yearsCan you change the drive? How? This is driving me mad :(