- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 mercurial key-ring extension将密码存储到我在 BitBucket 上的远程存储库中,因此我不必每次推送到远程存储库时都输入它。具有讽刺意味的是,每次我需要访问它时,它都会要求我输入密码来解锁 key 圈;从而完全减轻了它对我的目的。我究竟做错了什么?
在我的全局 mercurial 配置(~/.hgrc)中,我有以下几行:
[extensions]
hgext.mercurial_keyring = /etc/mercurial/mercurial_keyring.py
[paths]
default = https://username@bitbucket.org/username/repo
> hg out
> comparing with https://username@bitbucket.org/username/repo
> Please enter password for encrypted keyring:
最佳答案
不知道问这个问题的时候是不是已经这样了,但是现在直接在keyring extension wiki link in your question中说明了解决方法。 .
仅仅启用 key 环扩展是不够的,您还需要在配置文件中告诉 Mercurial 远程仓库和用户名。
引自链接:
3.2. Repository configuration (HTTP)
Edit repository-local
.hg/hgrc
and save there the remote repository path and the username, but do not save the password. For example:[paths]
myremote = https://my.server.com/hgrepo/someproject
[auth]
myremote.schemes = http https
myremote.prefix = my.server.com/hgrepo
myremote.username = mekkSimpler form with url-embedded name can also be used:
[paths]
bitbucket = https://User@bitbucket.org/User/project_name/Note: if both the username and password are given in
.hg/hgrc
, the extension will use them without using the password database. If the username is not given, extension will prompt for credentials every time, also without saving the password. So, in both cases, it is effectively reverting to the default behaviour.
[extensions]
mercurial_keyring =
[auth]
bb.prefix = https://bitbucket.org/
bb.username = christianspecht
christianspecht
, 对于 URL 以
https://bitbucket.org/
开头的所有远程存储库.
bb
可以自由选择,因此您可以使用它一次保存多个 URL/用户名。
关于version-control - Mercurial Keyring 每次都提示输入密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27533475/
我正在尝试使用rook在kubernetes集群上配置ceph,我已经运行了以下命令: kubectl apply -f common.yaml kubectl apply -f operator.y
有什么方法可以自动/以编程方式传递主密码。根据下面的代码,我们必须手动输入密码,我们可以避免这种情况吗 import keyring keyring.set_password('testuser','
我在 linux ubuntu 上安装了一个 mysql 服务器,我正在尝试安装 key 环插件。我已经编辑了位于/etc 的 my.cnf 文件。该文件最初是空的,所以我向其中添加了以下内容 [my
使用 python-keyring ,可以转储所有可用的密码吗?我正在寻找一个 iterate_passwords() 或类似的,但它似乎不存在。 根据 this blog post ,这可以使用 g
我想使用 Python 包 key 环来避免在我的 Python 脚本中暴露密码。根据我读过的内容,您需要做的就是 pip install keyring 然后开始存储和检索凭据。我已经在我的 Mac
我正在使用 mercurial key-ring extension将密码存储到我在 BitBucket 上的远程存储库中,因此我不必每次推送到远程存储库时都输入它。具有讽刺意味的是,每次我需要访问它
在Fedora下安装了一个MySQL Workbench,运行,连接数据库,在Store in Keychain时出现了gnome-keyring-daemon错误,不能保存密码,也就连不上数据库。
python-keyring 如何在 Windows 上提供安全性? 在 Linux 上的 GNOME/KDE 中,系统会提示用户输入密码以授权访问每个应用程序的 key 环。 在 Windows 中
我在 CentOS 6.4 上通过命令行使用 WANdisco subversion 1.9.2。 我想存储通过 gnome-keyring 加密的存储库的 http 访问密码。 我可以更改 ~/.s
我知道 gpg2 使用 gpg-agent 来获取私钥。默认情况下,它们存储在 ~/.gnupg/private-keys-v1.d . 现在我在问自己是否可以指示 gpg 在另一台机器上使用另一个代
我正在尝试构建一个简单的 Vala/Gtk Twitter 应用程序,并且我已经成功地发送了推文;但是,用户每次都必须进行身份验证,这需要转到 URL,单击以授予我的应用程序发布权限,复制 PIN,然
我正在尝试构建一个简单的 Vala/Gtk Twitter 应用程序,并且我已经成功地发送了推文;但是,用户每次都必须进行身份验证,这需要转到 URL,单击以授予我的应用程序发布权限,复制 PIN,然
有谁可以在 PyGi 中找到 gnome keyring api 吗? 我曾经做过: import gnomekeyring 现在我想使用新的 python/gobject 自省(introspect
Git 1.8.0 支持与 gnome-keyring 的集成。 http://www.h-online.com/open/news/item/Git-1-8-0-can-access-Windows
我希望 subversion 在没有运行 gnome 桌面的情况下在 Fedora 服务器上加密我的密码。但是我确实从 gnome GUI 开始进行健全性测试,并做了正常的 mods: ~/.subv
我正在连接一个 Python 脚本以使用 cron 运行(在 Ubuntu 12.04 上),但身份验证不起作用。 cron 脚本访问几个服务,并且必须提供凭据。使用 keyring 存储这些凭据非常
上个月我开始在笔记本电脑上使用 Linux lite 5.0。 (我对 Linux 环境相当陌生,刚刚从 Windows 10 迁移)。 因此,我使用 snap 安装了 Visual Studio C
我的问题 我的核心问题是我需要从 c shell 启动 gnome-keyring-daemon。在 bash 中,这很容易: > export `gnome-keyring-daemon` 相当于:
我对 Python 和编程还很陌生,我正在尝试弄清楚如何使 box.com 身份验证过程自动化,这让我大吃一惊。任何帮助将不胜感激! 我在下面有这段代码,这显然不是我的,而是来自教程。我想弄清楚 ke
我一直在寻找一种在连接到使用 SSL 的 Git 服务器时安全地存储凭据的方法。我遇到了@james-ward 的这个建议(我所做的唯一编辑是我更新了我们的“系统”配置而不是我们的 Git 的“全局”
我是一名优秀的程序员,十分优秀!