首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mercurial bitbucket授权失败

Mercurial bitbucket授权失败
EN

Stack Overflow用户
提问于 2014-05-04 04:13:30
回答 1查看 477关注 0票数 0

我根据1 1Pass的了望塔推荐更改了Bitbucket密码。从那以后,我就不能拉/推我的任何回复,虽然我可以通过浏览器登录。我尝试过HTTP和SSH,但两者都不起作用。

这是一个示例输出。

代码语言:javascript
复制
hg pull --debug https://caliChander@bitbucket.org/caliChander/cs1
using https://bitbucket.org/caliChander/cs1
http auth: user caliChander, password not set
sending capabilities command
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
using auth.bitbucket.* for authentication
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
abort: authorization failed

当我的~/.hgrc看起来像这样的时候,我很好奇为什么上面写着“密码不设置”:

代码语言:javascript
复制
[ui]
username = First Last <some.email@random.com>
[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = caliChander
bitbucket.password = some_very_long_password_here
bitbucket.schemes = http https
[web]
cacerts = /etc/hg-dummy-cert.pem

我的直觉是,某些字符是不允许在密码字段?这是通过1 1Pass随机生成的。是这样吗?

为了防止需要,cs1回购中的cs1看起来如下所示:

[paths] default = https://caliChander@bitbucket.org/caliChander/cs1

我是OS小牛队的。谢谢你的帮助!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-05-04 11:21:53

我很好奇为什么上面写着“密码不设置”

因为URL可能同时包含用户名和密码,所以您的https://caliChander@bitbucket.org/只有用户名部分。

ui部分在auth阶段是不相关的(它只是用于定义用户数据的信息数据,显示在日志中用于本地提交),只有来自auth的用户名密码用于身份验证。您可以在hgrc中临时禁用密码并手动输入密码。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23452525

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档