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

/etc/ssh/ssh_config

添加内容

ControlMaster auto

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

ControlPersist 600

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

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,841评论 18 139
  • 加密算法 对称加密算法 加密和解密使用同一个密钥 DES、3DES、AES、Blowfish、Twofish、ID...
    毛利卷卷发阅读 1,620评论 0 4
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,719评论 0 3
  • MHA是什么? MHA是由日本Mysql专家用Perl写的一套Mysql故障切换方案,来保障数据库的高可用性,它的...
    张伟科阅读 649评论 0 1
  • 【三阶段·片段二】 选自《销售读心术》 R:阅读原文。 销售人员对客户发自肺腑的赞美,总能产生意想不到的效果。作为...
    胖纸西付阅读 83评论 0 0