切换到新计算机后,我不得不再次安装SmartGIT for Windows,现在尝试克隆我的fedorahosted.org-repository。 密钥存储在C:/User/myusername/.ssh,SmartGIT附带一个干净的安装和用于克隆我的存储库的URL是正确的 - 遗憾的是,SmartGIT不会要求密钥,它只是尝试连接到fedorahosted.org但当然失败。
那么......这里可能出现什么问题? 我在哪里放置我的ssh密钥以便SmartGIT找到并使用它?
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?
最满意答案
面临同样的问题,因为Smart Git在尝试克隆repo时不会问我SSH密钥位置(相反,该过程只会挂起......)。
要解决的步骤(在Windows上):
将ssh密钥复制到C:/Users/MyUserName/.ssh(因为它们在生成之前位于不同的位置) 再次在Smart Git中克隆存储库,现在在指定存储库URL之后,它就要求SSH密钥位置(此对话框之前未显示!) 选择SSH私钥(已使用例如Putty Keygen转换为OpenSSH兼容格式) 瞧,克隆工作!PS:我同意Smart Git的上述行为在这里很奇怪,因为如果键位于上面指定的.ssh文件夹中,它只会让你选择键位置
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):
Copy ssh keys to C:/Users/MyUserName/.ssh (as they were in a different location before after generation) 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!) Select the SSH private key (which has been converted with e.g. Putty Keygen to an OpenSSH compatible format) 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
更多推荐
发布评论