小编Evg*_*rov的帖子

为什么 ssh 不使用配置文件中设置的身份?

我正在尝试配置某些 git 存储库以使用特定的公钥/私钥进行身份验证。

这是在 ~/.ssh/config 里面

Host Repo
HostName bitbucket.org
User git
IdentityFile ~/.ssh/ynd
LogLevel DEBUG
Run Code Online (Sandbox Code Playgroud)

这是尝试推送到仓库时的日志

debug1: Connecting to bitbucket.org [104.192.143.1] port 22.
debug1: Connection established.
debug1: identity file /Users/evgenipetrov/.ssh/ynd type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evgenipetrov/.ssh/ynd-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version conker_1.0.315-a08d059 app-134
debug1: no match: conker_1.0.315-a08d059 app-134
debug1: Authenticating to bitbucket.org:22 as 'git'
debug1: …
Run Code Online (Sandbox Code Playgroud)

ssh mac-osx git

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

git ×1

mac-osx ×1

ssh ×1