【发布时间】:2018-02-10 18:10:26
【问题描述】:
我偶然发现了GitLab's documentation for setting up OpenSSH keys:
文档说要创建一个文件~/.ssh/config 并给出以下示例:
# GitLab.com server
Host gitlab.com
RSAAuthentication yes
IdentityFile ~/.ssh/config/private-key-filename-01
# Private GitLab server
Host gitlab.company.com
RSAAuthentication yes
IdentityFile ~/.ssh/config/private-key-filename
但是,我认为 IdentityFile 的示例路径应该是 ~/.ssh/private-key-filename 而不是 ~/.ssh/config/private-key-filename,因为 ~/.ssh/config 是文件而不是文件夹。
还是我错过了什么?
【问题讨论】: