Could not resolve hostname ***(代码地址) nodename nor servname provided, or not known

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  最下面

Could not resolve hostname ***(代码地址) nodename nor servname provided, or not known_第1张图片
/etc/ssh/ssh_config

添加内容

ControlMaster auto

ControlPath ~/.ssh/sockets/%r@%h-%p

ControlPersist 600

ProxyCommand ssh%r@$(dirname%h) -W$(basename%h):%p

退出之后, 在去拉一下代码  可以了.

你可能感兴趣的:(Could not resolve hostname ***(代码地址) nodename nor servname provided, or not known)