在sourcetree上设置SSH-不会推送到GitLab-要求输入密码 [英] Setting up SSH on sourcetree - wont PUSH to GitLab - asks for password

查看:597
本文介绍了在sourcetree上设置SSH-不会推送到GitLab-要求输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照以下说明创建了SSH密钥并将其添加到Gitlab.

I have followed the below instructions to create an SSH key and added it to Gitlab.

https://www.sourcetreeapp.com/faq/(在如何设置用于身份验证的SSH密钥吗?"

https://www.sourcetreeapp.com/faq/ (under the heading "How do I set up SSH keys for authentication?")

我的更改已在Sourcetree中进行了跟踪,我能够提交,但是如果没有它要求身份验证,就无法拉或推.每次添加密码时,密码都会被拒绝,但是我可以使用相同的详细信息直接登录到Gitlab.我想念什么吗?

My changes are being tracked in Sourcetree and I am able to commit but I cannot pull or push without it asking for Authentication. Every time I add my password it rejects it but I am able to login direct to Gitlab with the same details. Am I missing something?

我认为已经设置了SSH,因此也不必使用用户名和密码进行身份验证.请查看显示我已将SSH密钥添加到Pageant和authenticate框中的屏幕截图.

I thought having set up SSH I wouldn't have to authenticate with the username and password as well. Please see screen shot which shows I have added the SSH key to the Pageant and the authenticate box.

任何人都可以帮忙吗?

推荐答案

可能有很多问题:

  1. 您的私钥是否已添加到Sourcetree?工具>常规> SSH客户端配置?
  2. 您的密钥是否已添加到SSH代理?工具>启动SSH代理,并且是在SourceTree打开时自动启动SSH代理"复选框的标签
  3. 您的私钥是否已添加到GitLab上的个人资料中?配置文件设置> SSH密钥
  4. 您是否使用http链接克隆了GitLab存储库?如果是这样,您将始终需要使用详细信息进行登录,请通过使用SSH链接对其进行克隆来进行更改.就像git @ [domain]:[group]/[project] l.git

这篇关于在sourcetree上设置SSH-不会推送到GitLab-要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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