Searching google for github ssh“no address associated with name”给出以下SO问题作为4个顶级结果:
github no address associated with name
Github push origin master not working
Syncing with github
GITHUB setup – no address associated with name
不过,他们都没有回答我的问题.
@H_403_8@c:\Program Files (x86)\Git\bin>git --version git version 1.7.7.1.msysgit.0 c:\Program Files (x86)\Git\bin>ssh git@github.com Enter passphrase for key '/c/Users/Piotr/.ssh/id_rsa': Hi piotr-dobrogost! You've successfully authenticated,but GitHub does not provide shell access. Connection to github.com closed. c:\Program Files (x86)\Git\bin>git clone ssh://git@github.com:piotr-dobrogost/requests.git Cloning into requests... ssh: github.com:piotr-dobrogost: no address associated with name fatal: The remote end hung up unexpectedly我猜这个问题是由git传递github.com:piotr-dobrogost作为主机名为ssh,而不是github.com.为什么git这样做和解决方案是什么?