【发布时间】:2020-11-13 07:06:15
【问题描述】:
我最近切换到运行工具箱的全新 Fedora 33 Silverblue 安装。这也发生在工具箱之外。我使用以下命令生成了一个 SSH 密钥
ssh-keygen -t rsa -b 4096 -C filbot@fenix
然后我将它上传到我的帐户下的 Azure DevOps。但是,我无法使用以下 ~/.ssh/config 从 Azure DevOps 克隆任何内容:
⬢[filbot@toolbox ~]$ cat ~/.ssh/config
# SSH Configuration File
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
User git
IdentityFile /var/home/filbot/.ssh/id_rsa
IdentitiesOnly yes
Host vs-ssh.visualstudio.com
HostName vs-ssh.visualstudio.com
User git
IdentityFile /var/home/filbot/.ssh/id_rsa
IdentitiesOnly yes
然后我运行了这些git clone 命令,结果如下:
⬢[filbot@toolbox ~]$ git clone git@ssh.dev.azure.com:v3/$ORG/$PROJ/Developer.dudleyp.cs_pipeline_tasks
Cloning into 'Developer.dudleyp.cs_pipeline_tasks'...
git@ssh.dev.azure.com's password:
⬢[filbot@toolbox ~]$ GIT_SSH_COMMAND=ssh git clone git@ssh.dev.azure.com:v3/$ORG/$PROJ/Developer.dudleyp.cs_pipeline_tasks
Cloning into 'Developer.dudleyp.cs_pipeline_tasks'...
git@ssh.dev.azure.com's password:
⬢[filbot@toolbox ~]$ ssh -T git@ssh.dev.azure.com
Warning: Permanently added the RSA host key for IP address '20.37.158.9' to the list of known hosts.
git@ssh.dev.azure.com's password:
⬢[filbot@toolbox ~]$ ssh -i ~/.ssh/id_rsa -T git@ssh.dev.azure.com
git@ssh.dev.azure.com's password:
Git 似乎没有像以前或在其他较旧的 Fedora 或 Pop!_OS 安装中那样尊重甚至使用我的主目录中的 ssh 配置。我不明白它为什么现在这样做,以及如何获取信息以进一步解决这个问题。
【问题讨论】: