![](/img/trans.png)
[英]Python BeautifulSoup Ampersand issue Mac vs. Linux Ubuntu
[英]Mac vs Linux (Ubuntu) .ssh config for github
我在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.
好吧,我知道这很麻烦回答关于SO的问题,但这也许会对某人有所帮助。 我在服务器上进行sudo-ing操作,因此以root
身份播放时不考虑ubuntu
用户的配置。
解决方案 :为合适的用户提供配置,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.