QtCreator如何设置SSH,才能弹出密码输入窗口?

makec 2011-09-13 03:23:19
http://doc.qt.nokia.com/qtcreator-snapshot/creator-version-control.html

If you configure Git for use with git bash, only, and use SSH authorization, Git looks for the SSH keys in the directory where the HOME environment points to. The variable is always set by git bash.

However, the variable is typically not set in a Windows command prompt. When you run Git from a Windows command prompt, it looks for the SSH keys in its installation directory, and therefore, the authorization fails.

You can set the HOME environment variable from Qt Creator. Select Tools > Options... > Version Control > Git. Select the Environment Variables and the Set "HOME" environment variable check boxes. HOME is set to %HOMEDRIVE%%HOMEPATH% when the Git executable is run and authorization works as it would with git bash.

这段帮助文档的意思看起来是可以在QtCreator里使用ssh的密码输入的。
可是我反复设置都失败。
现在只能被迫不使用密码。

有没有人尝试过如何解决这个问题?

在Git的选项界面中:Git needs to find Perl in the environment as well
这看起来需要Perl环境。那么这个Perl能否使用msys-git附带的perl呢?
...全文
592 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
sclzmbie 2011-09-20
  • 打赏
  • 举报
回复
QtCreator好像还没搞定有密码的git, https://bugreports.qt.nokia.com/browse/QTCREATORBUG-2943?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs
makec 2011-09-20
  • 打赏
  • 举报
回复
顶一下
2
wan_2004 2011-09-20
  • 打赏
  • 举报
回复
linux下可以
makec 2011-09-15
  • 打赏
  • 举报
回复
顶一下
makec 2011-09-13
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 yiyaaixuexi 的回复:]

http://hi.baidu.com/joyhub2140/blog/item/175989cd41306e0a00e928ed.html 这个比较全喽
[/Quote]
这个文章昨天就看过,实在后发现失败。
这是另外几个相关链接:
http://stackoverflow.com/questions/5699684/using-git-push-from-qt-creator
http://www.qtcentre.org/threads/24162-Using-git-with-qt-creator
http://doc.qt.nokia.com/qtcreator-snapshot/creator-version-control.html
http://help.github.com/ssh-key-passphrases/
念茜 2011-09-13
  • 打赏
  • 举报
回复
makec 2011-09-13
  • 打赏
  • 举报
回复
顶一下
makec 2011-09-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 yuyan_linger 的回复:]

帮顶 这个在c++版的确接触的人比较少 到网上搜搜吧
[/Quote]
你实践了吗?
PATH设置了,HOME变量也设置了,都不行。
ryfdizuo 2011-09-13
  • 打赏
  • 举报
回复
不懂,帮顶了~
yuyan_linger 2011-09-13
  • 打赏
  • 举报
回复
帮顶 这个在c++版的确接触的人比较少 到网上搜搜吧
xunxun 2011-09-13
  • 打赏
  • 举报
回复
可以使用
不过你得把path加入路径中
turing-complete 2011-09-13
  • 打赏
  • 举报
回复
到QT专区问了吗,效果能好一些吧

16,240

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧