关于magento-cloud新项目无法pull代码的问题

问题

magento-cloud新项目添加magento-cloud ssh-key:add后仍然无法pull代码,

处理

解决方法如下:

1.需要配置~/.ssh/config文件,例如:

gedit ~/.ssh/config,

拷贝以下到~/.ssh/config

1
2
3
4
Host git.us-3.magento.cloud
Hostname git.us-3.magento.cloud
User tajmoznp6wqkq
IdentityFile /home/dyl/.ssh/id_rsa.2

2.获取公钥写入到~/.ssh/known_hosts中,终端执行以下命令:

1
ssh-keyscan -H git.us-3.magento.cloud >> ~/.ssh/known_hosts