SmartGIT不要求ssh密钥(SmartGIT does not ask for ssh key)

编程入门 行业动态 更新时间:2024-10-26 11:23:34
SmartGIT不要求ssh密钥(SmartGIT does not ask for ssh key)

切换到新计算机后,我不得不再次安装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

更多推荐

本文发布于:2023-07-25 22:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267161.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密钥   SmartGIT   ssh   key

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!