SmartGIT不要求ssh密钥 [英] SmartGIT does not ask for ssh key

查看:430
本文介绍了SmartGIT不要求ssh密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

切换到新计算机后,我不得不再次安装Windows的SmartGIT,现在尝试克隆fedorahosted.org存储库.密钥存储在C:/User/myusername/.ssh中,SmartGIT带有全新安装,并且用于克隆我的存储库的URL是正确的-不幸的是SmartGIT不要求输入密钥,它只是尝试连接到fedorahosted.org,但是然后失败.

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.

那么...这里可能出什么问题了?我必须在哪里放置ssh密钥,以便SmartGIT找到并使用它?

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

推荐答案

面临相同的问题,因为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..).

要解决的步骤(在Windows上):

Steps to resolve (on Windows):

  1. 将ssh密钥复制到C:/Users/MyUserName/.ssh(因为生成后它们位于不同的位置)
  2. 再次在Smart Git中克隆存储库,现在,在指定存储库URL之后,它会直接询问SSH密钥的位置(此对话框之前未显示!)
  3. 选择SSH私钥(已使用例如Putty Keygen转换为与OpenSSH兼容的格式)
  4. Voila,克隆有效!

PS:我同意上面Smart Git的行为很奇怪,因为如果密钥位于上面指定的.ssh文件夹中,它只会让u选择密钥位置

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

这篇关于SmartGIT不要求ssh密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆