美文网首页
Could not resolve hostname ***(代

Could not resolve hostname ***(代

作者: 不慌不忙 | 来源:发表于2018-08-02 20:22 被阅读49次

    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

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

    相关文章

      网友评论

          本文标题:Could not resolve hostname ***(代

          本文链接:https://www.haomeiwen.com/subject/fwnsvftx.html