相关疑难解决方法(0)

Git 如何使用 SSH 密钥、用户名进行克隆

我有以下内容,我需要在 Windows 终端命令提示符或 linux 中克隆存储库。

  • 网址: git@xxxxx.com:xxx/xxx/git
  • 用户名: xxx@xxx.in
  • SSH 密钥: ssh-rsa AAAAB3NzaC1yxxxxxxxxxxxx....xxx@xxx.in

我试过:

git clone git@xxxxx.com:xxx/xxx/git
Run Code Online (Sandbox Code Playgroud)

我得到

Permission denied(public key)
Couldn't read from remote repository
Run Code Online (Sandbox Code Playgroud)

还尝试将 URL 更改为:

git clone https://xxxxx.com:xxx/xxx/git
Run Code Online (Sandbox Code Playgroud)

git clone

35
推荐指数
3
解决办法
6万
查看次数

标签 统计

clone ×1

git ×1