简体   繁体   中英

where to put ssh keys of git for use in windows 10

I have installed git on ubuntu 19.10 and it works fine with my ssh keys. I installed gitbash on windows 10 and I want to use same keys on windows 10. I checked this thread https://serverfault.com/a/198691 and also How to configure git with SSH keys on Windows 10? I do not see any folder name .ssh in my Git installation directory on Windows 10. I only see folllowing folders and files

bin
cmd
dev
etc
git-bash.exe
git-cmd.exe
LICENSE.txt
mingw64
ReleaseNotes.html
tmp
unins000.dat
unins000.exe
unins000.msg
usr

I don't see any where any folder where I can put ssh keys inside to use. I am using Windows 10.

You should put your keys in %USERPROFILE% , which is set as $HOME by default in git bash.

You can also set, in your git bash session:

export GIT_SSH_COMMAND='ssh -v'

That way, with any git command using ssh (like a git clone), you will see exactly what Git is trying to access to)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM