使用应用程序密码对 bitbucket 存储库进行身份验证失败

发布于 2025-01-13 21:20:10 字数 987 浏览 0 评论 0原文

尝试使用 Capistrano 脚本在 EC2 实例上部署项目时出现以下错误:

Tasks: TOP => git:create_release => git:update
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host xx.xxx.xx.xxx: git exit status: 1
git stdout: Nothing written
git stderr: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://UserName:[email protected]/Repo/repo.git/'
error: Could not fetch origin

如何更改用于获取源的 URL 中的密码?

While trying to deploy project on EC2 instance using Capistrano script getting following error:

Tasks: TOP => git:create_release => git:update
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host xx.xxx.xx.xxx: git exit status: 1
git stdout: Nothing written
git stderr: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://UserName:[email protected]/Repo/repo.git/'
error: Could not fetch origin

How to change password in URL used to fetch origin?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灯角 2025-01-20 21:20:10

使用新的应用程序密码更改 EC2 实例上 /home/ubuntu/git/repo/config 文件中的 URL 路径,如下所示:

url = https://UserName:[email protected]/User/repo.git/

Change url path in /home/ubuntu/git/repo/config file on EC2 instance with new app password as follows:

url = https://UserName:[email protected]/User/repo.git/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文