代码之家  ›  专栏  ›  技术社区  ›  Casey Shore

ssh-T有问题吗git@github.com

  •  1
  • Casey Shore  · 技术社区  · 6 年前

    ssh:无法解析hostname\342\200\223t:名称或服务未知

    ssh -T git@github.com
    

    Keygen已经添加到github中,并使用

    ssh-add -l -E md5
    

    它们确实匹配,但仍收到此错误。 也尝试过:

    ping github.com
    git config --global --unset http.proxy
    git config --global --unset https.proxy
    

    1 回复  |  直到 6 年前
        1
  •  10
  •   Dietrich Epp    6 年前

    您使用了错误的连字符 - 在某个地方。 \342\200\223 UTF-8代表U+2013 EN破折号,看起来像 – . 这可能是由于自动更正、在博客某处设置的过滤器或复制和粘贴内容造成的。我知道当我在iPhone上打字的时候 -- (一个破折号)由电话自动,这使它深感沮丧回答堆栈溢出的问题。

    所以, 不正确,但是 是正确的。欢迎来到Unicode的世界。请注意,en破折号稍微。。。只是有点。。。比较长的。