- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我一直在寻找一种在连接到使用 SSL 的 Git 服务器时安全地存储凭据的方法。我遇到了@james-ward 的这个建议(我所做的唯一编辑是我更新了我们的“系统”配置而不是我们的 Git 的“全局”配置(https://stackoverflow.com/a/14528360/6195194)
sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --system credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
然后我就可以跑了
git clone https://ipaddress/git/repo.git
凭证助手将存储我的凭证,但是当我运行以下命令时:
sudo git clone https://ipaddress/git/repo.git testfolder
它给我以下错误
** (process:3713): CRITICAL **: Error communicating with gnome-keyring-daemon
我有时需要运行 sudo git clone 因为有时我需要创建克隆的目录需要它。任何帮助将不胜感激。
我使用的版本: - git 版本 1.9.1 - Ubuntu 服务器 14.0.4
提前致谢!-理查德 O.
最佳答案
除了使用 sudo,请注意,在 2016 年,libgnome-keyring
是特定于 GNOME 的,现在已弃用(自 January 2014, actually 起)。
git-credential-manager
Microsoft 提供了一个名为 GCM (Git Credential Manager) 的跨平台凭证助手,这 you can install (无需构建它)并配置:
git-credential-manager-core configure
您需要 Git 2.27+ 才能使用它。
git-credential-libsecret
Git 2.11+(2016 年第 4 季度)包括一个使用 libsecret
的新凭证助手.
参见 commit 87d1353 (2016 年 10 月 9 日)Mantas Mikulėnas (grawity
) .
(由 Junio C Hamano -- gitster
-- merge 于 commit bfe800c ,2016 年 10 月 26 日)
A new credential helper that talks via "libsecret" with implementations of XDG Secret Service API has been added to
contrib/credential/
.it uses
libsecret
which can support other implementations of XDG SecretService API.
但在 2022 年,这将不再需要。见上文
如 mati865 所述在 the comments :
It should be noted that some distros like Arch and Fedora provide helpers available as both binary and source.
- Libsecret binary on Arch:
/usr/lib/git-core/git-credential-libsecret
, and- Libsecret binary on Fedora:
/usr/libexec/git-core/git-credential-libsecret
.
注:如@rugk在评论中添加,for Fedora and Git v2.25.2-1 or higher ,你需要用那个二进制文件安装一个额外的包,因为 it has been split from the main git package :
dnf install git-credential-libsecret
关于linux - 使用带有 gnome-keyring 的 Git 凭证助手作为 Sudo 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36585496/
有没有办法测试人工凭证以及我是否可以成功访问存储库?从命令行运行我无法查看是否使用了凭据以及来自带有 ?trace 的浏览器附加到 url 拒绝匿名用户访问。 最佳答案 您可以使用 Artifacto
我正在尝试运行将使用 npm publish 的 Jenkins 2 管道(Jenkinsfile)将包发布到本地 NPM 存储库。 为了做到这一点,我尝试在 Jenkinsfile 中使用以下阶段:
我正试图从我的 JavaScript 前端应用程序的 S3 中获取我的图像对象。 根据文档,这些是所需的步骤: import * as AWS from "aws-sdk"; AWS.config.u
我正在使用 IVONA SpeachCloud SDK(创建语音样本):https://github.com/IvonaSoftware/ivona-speechcloud-sdk-java/blob
我有一个问题:ACAccountStore 是否会自动更新 Twitter token ?我需要在我的服务器中使用 token 来自动发布。请分享您的经验。 最佳答案 如果您像这样使用 SLReque
我正在为为 CMS 创建的商店/购物车创建一个 PayPal 网关。完成后,网关将可供其他人使用。在我的开发者帐户中创建的 API 凭据(客户端 ID 和 secret )是否保留在应用程序中,还是每
我在 Magnto 1.9 中启用了 paypal 现在我想在我的 Observer 中调用另一个 paypal API,为此我需要 paypal 用户、密码和签名,我在启用 paypal 时已经保存
有没有办法用 TortoiseGit 保存 GITHUB 的用户凭证? 每当我进行推/pull 时,它都会提示我以下对话框。 我想将我的用户凭据信息保存在某个地方,就像我使用 TortoiseSVN
我有一个 Jenkins 工作,它应该构建一个 Jar 并将其添加到 Nexus。我已经配置了构建后操作以将 Maven Artifact 部署到 nexus 存储库。 问题是,nexus 需要用户名
在我之前的 Jenkinsfile 中,我曾经有过这个: withCredentials([[ $class: 'AmazonWebServicesCredentialsBinding',
我的证书有问题,我什至不确定我是否选择了正确的方法...长话短说..我需要我的 Jenkins 工作在构建过程中从需要使用证书身份验证的网站下载一些东西 - 我得到了 .p12 和 .cert 证书。
我在使用 WWW:Mechanize 的凭据代理访问和网络抓取需要 NTLM 身份验证的站点时遇到问题。我在网上读到凭证代理需要 4 个参数:基址、领域、用户名和密码。我不确定用于基础或领域的内容,因
我正在使用 AWS Java SDK 并尝试运行一些测试;得到: 无法从类路径上的/AwsCredentials.properties 文件加载 AWS 凭证 根据 AWS 规范,凭证文件 @ ~/.
我已将我的 MongoDB 设置为仅接受通过 SSL 的连接。 Mongo 具有我使用以下命令生成的证书的句柄 openssl req -newkey rsa:2048 -new -x509 -day
如何让 gspread 使用我的 oauth 凭据?我的 http 响应 gspread.httpsession.HTTPError 出现错误:(谁能告诉我我的代码有什么问题吗? import dat
我有一大桶 S3 文件要放在 HDFS 上。考虑到涉及的文件数量,我首选的解决方案是使用“分布式副本”。但是由于某种原因,我无法让 hadoop distcp 获取我的 Amazon S3 凭据。我使
我在 Magnto 1.9 中启用了 paypal现在我想在我的 Observer 中调用另一个 paypal API,为此我需要 paypal 用户、密码和签名,我在启用 paypal 时已经保存了
作为构建 docker 容器的过程的一部分,我需要从 s3 存储桶中提取一些文件,但我不断收到 fatal error: Unable to locate credentials 即使现在我正在设置凭
应用 Spring 中的简单 REST API 注册服务,在发送正确的 POST 请求后在数据库中创建新用户,并且 Amazon SES 发送一封包含注册链接的电子邮件以进行验证。 问题 在我的操作系
背景 我使用 google-api-python-client django_sample 获得了 Google API 的 access_token . 为了离线访问,我添加了 FLOW.param
我是一名优秀的程序员,十分优秀!