Please note, it will not mess with your existing git environment if you have one. The most common way to authenticate is using ssh keys. On windows machines with msysgit installed, you should do this from within a git bash. I wasnt really into using cygwins ssh so i grabbed the ssh files from the mingw msys project and dropped them into msysgit.
Cant add putty key to existing repo cloned over ssh with. If you dont already have an ssh key, you must generate a new ssh key. Connecting to github using putty generated ssh key in windows 7. It is complete, in the sense that you just need to install msysgit, and then you can build git. If youre using msysgit with the openssh tools, you need to either create. Installing the msysgit, configuring git, creating ssh keys for github, customize the powershell, installing poshgit. Adding a new ssh key to your github account to configure your github account to use your new or existing ssh key, youll also need to add it to your github account. So ive installed msysgit, and run git successfuly from the bash shell. If you installed gitmsysgit with the recommended use tortoiseplink option, after setting up your. You need to open a bash git session in order to use ssh commands. If you use an older version of msysgit, you may encounter a step called choosing the ssh executables. How do i tell git for windows where to find my private rsa key. We recommend installing msysgit because weve found its easier to work with than the.
Git uses ssh keys to securely access your repositories, and in windows ssh keys are often searched on the wrong path when you try to use git. Generating a new ssh key and adding it to the sshagent mac windows linux all after youve checked for existing ssh keys, you can generate a new ssh key to use for authentication, then add it to the sshagent. How to generate and use an ssh keypair to connect to your git repository in. On windows, you can either use the sshkeygen tool provided with msysgit, or a. After youve checked for existing ssh keys, you can generate a new ssh key to use for authentication, then add it to the sshagent. Generating a new ssh key and adding it to the sshagent. If you dont understand how ssh public key authentication works, or how the. To configure your github account to use your new or existing ssh key, youll also need to add it to your github. If you installed git msysgit with the recommended use tortoiseplink option, after setting up your. A step by step guide on using git with ssh keys in windows. For a more indepth tutorial on creating an ssh key on multiple operating systems, see the github guide. Originally i came to the msysgit project with the intent of providing rather simple instructions of how i did the above with the hope that that would be sufficient.
1573 206 265 604 879 946 231 496 194 34 856 483 191 1192 1389 1093 151 415 1033 1205 885 1201 1036 939 60 1102 710 152 1218 1415 153 822 1351 8 1498