SmartGIT does not ask for ssh key

半腔热情 提交于 2019-12-21 12:27:12

问题


after switching over to a new computer I had to install SmartGIT for Windows again and now try to clone my fedorahosted.org-repository. Keys are stored C:/User/myusername/.ssh, SmartGIT comes with a clean installation and URL for cloning my repository is correct - unfortunately SmartGIT does NOT ask for the key, it just tries to connect to fedorahosted.org but then of course fails.

So...what could be wrong here? Where do I have to place my ssh keys so that SmartGIT finds and uses it?


回答1:


Was facing the same problem, as Smart Git wouldn't ask me for the SSH key location when trying to clone a repo (instead, the process would just hang..).

Steps to resolve (on Windows):

  1. Copy ssh keys to C:/Users/MyUserName/.ssh (as they were in a different location before after generation)
  2. Clone the repository in Smart Git again, now after specifying the repository URL, it DID ask for the SSH key location (this dialog was not shown before!)
  3. Select the SSH private key (which has been converted with e.g. Putty Keygen to an OpenSSH compatible format)
  4. Voila, cloning works!

PS: I agree Smart Git's behavior above was weird here, as it would only let u select the key location, if the keys are in the .ssh folder specified above




回答2:


I had same problem. select option 'Use SmartGit as SSH client' from SmartGit -> Edit-> Preference -> Authentication And it worked.



来源:https://stackoverflow.com/questions/21291973/smartgit-does-not-ask-for-ssh-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!