使用应用程序密码对 bitbucket 存储库进行身份验证失败
尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用新的应用程序密码更改 EC2 实例上 /home/ubuntu/git/repo/config 文件中的 URL 路径,如下所示:
Change url path in /home/ubuntu/git/repo/config file on EC2 instance with new app password as follows: