use*_*762 4 git authentication ssh atlassian-sourcetree
我在登录 SourceTree 时遇到严重问题。
我使用该程序时总是弹出登录窗口,必须重新输入登录信息。
我尝试通过多种方式解决这个问题,包括尝试从 HTTPS 切换到 SSH,但我没有设法修复 SourceTree 的 SSH。
如何解决登录失败的问题?
这解决了登录失败的问题。
\n\n为了能够切换到 SSH,必须首先对其进行设置。
\n\n因此,本指南适用于那些遇到 SourceTree 登录问题或需要帮助将 SourceTree 连接到 SSH 的用户。
\n\n要使用 SourceTree 生成 SSH 密钥:
\n\n文件夹现在应包含:
\n\n.ppk 是私钥,.pub 是公钥。\n公钥存储在远程服务器上,稍后会在 Bitbucket 中显示。
\n\n运行以下命令:
\n\n评估 $(ssh-agent)
\n\nThe output should give you a process id back, something like, Agent pid 1234\nRun Code Online (Sandbox Code Playgroud)运行以下命令添加生成的私钥“id_rsa”:
\n\nssh-添加 ~/.ssh/id_rsa
\n\nIf successful, the output should say that an identity has been created.\nRun Code Online (Sandbox Code Playgroud)在\xe2\x80\x99输入完整的url后添加 ssh://
\n\nhttps://<your_username>@bitbucket.org/<account_name>/<repo_name>.git\n\nssh://<your_username>@bitbucket.org/<account_name>/<repo_name>.git\nRun Code Online (Sandbox Code Playgroud)SourceTree 将尝试验证您的输入
| 归档时间: |
|
| 查看次数: |
4550 次 |
| 最近记录: |