【发布时间】:2014-10-13 20:30:44
【问题描述】:
我在 Mac OS X 上 /Users/andi/.ssh/config 有以下配置:
Host github
HostName github.com
IdentityFile "~/.ssh/githubik"
IdentitiesOnly yes
而且我可以轻松轻松地运行git clone git@github:andilab/mbf.git
我在 Ubunut(EC2 上的 14.04)上尝试了相同的配置。配置在/home/ubuntu/.ssh 中,当我运行git clone git@github:andilab/mbf.git 时,我得到:
Cloning into 'mbf'...
ssh: Could not resolve hostname github: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
git:github_.com_:...
-
@bmargulies 这不是原因!阅读答案,并考虑不要用-points惩罚我......
标签: linux macos git github ssh