mac配置了ssh公鑰, 倉庫也添加了ssh key, 在clone到本地就連接不到服務(wù)器.
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.? ? 鏈接超時(shí) 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
添加內(nèi)容
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
ProxyCommand ssh%r@$(dirname%h) -W$(basename%h):%p
退出之后, 在去拉一下代碼? 可以了.