mac配置了ssh公钥, 仓库也添加了ssh key, 在clone到本地就连接不到服务器.
OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for *debug1: Connecting to 123.56.192.254:coin/exchange/ios_baic_exchange.git port 22.链接超时 ssh: Could not resolve hostname 123.56.192.254:coin/exchange/ios_baic_exchange.git: nodename nor servname provided, or not known/etc/ssh/ssh_config最下面
文章图片
/etc/ssh/ssh_config 【Could|Could not resolve hostname ***(代码地址) nodename nor servname provided, or not known】添加内容
ControlMaster auto退出之后, 在去拉一下代码可以了.
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
ProxyCommand ssh%r@$(dirname%h) -W$(basename%h):%p