![]() Paste your public key in the big text box. This setting can be overridden via the environment variable GIT_SSH_VARIANT. In GitHub, go to your profile settings and locate SSH and GPG keys or simply follow this link to add a new SSH key. Valid values are ssh, plink, putty or tortoiseplink.Īny other value will be treated as normal ssh. The config variable ssh.variant can be set to override this auto-detection (Merged by Junio C Hamano - gitster - in commit be6ab59, ) ssh.variant:ĭepending on the value of the environment variables GIT_SSH or GIT_SSH_COMMAND, or the config setting core.sshCommand, Git auto-detects whether to adjust its command-line parameters for use with plink or tortoiseplink, as opposed to the default (OpenSSH). See commit 6a4f3a9 () by Junio C Hamano ( gitster). See commit e2824e4 () by Johannes Schindelin ( dscho). See commit dd33e07 (), and commit e9d9a8a () by Segev Finer ( segevfiner). Git now auto-detects the ssh you need (openssh or plink), but you can force that detection with ss.variant. Since other users cannot access this path, it is a good idea to copy the public key now to a path which is accessible. 2 Answers Sorted by: 176 You should be able to do this by specifying the name of the output file with the -f option, e.g., ssh-keygen -t rsa -b 4096 -C '' -f HOME/.ssh/idrsa Of course, it really helps if the output directory has already been created. The SSH keys of the System account are in C:WINDOWSsystem32configsystemprofile.ssh. To setup this quickly run PowerShell as admin: ::SetEnvironmentVariable("GIT_SSH", "D:\your_path_here\plink.exe", "User") Other than human user accounts, the user’s home path is not located in C:Users. With these changes GIT is now functioning properly. I set the environment variable GIT_SSH to the new path.I changed the Plink path to removes spaces.Even with a Plink session running I never able to get the installer to recognize PLink was running. I did start a Plink session before installing GIT. I was finally able to get GIT to work with Plink. No matter what I do I can't get Git to use my putty plink data and private key.Ģ) Saving settings for one putty session (doesn't matter which one)Īnd by doing those before installing git. ![]() I have tried loading my putty private key and reinstalling Git. Now Git continues to look for an OpenSSH key. ![]() When I updated the install never asked if I wanted to use PLink. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |