问题
magento-cloud新项目添加magento-cloud ssh-key:add后仍然无法pull代码,
处理
解决方法如下:
1.需要配置~/.ssh/config文件,例如:
gedit ~/.ssh/config,
拷贝以下到~/.ssh/config中
1 | Host git.us-3.magento.cloud |
2.获取公钥写入到~/.ssh/known_hosts中,终端执行以下命令:
1 | ssh-keyscan -H git.us-3.magento.cloud >> ~/.ssh/known_hosts |
原文链接: http://www.jiliuke.com/2018/06/06/about-magento-cloud-connect-git-failed/
版权声明: 转载请注明出处.