Php Git can';t通过ssh部署器克隆项目
我使用Deployer将项目克隆到服务器上,但尽管设置了部署密钥,但由于某些原因,通过SSH克隆失败:Php Git can';t通过ssh部署器克隆项目,php,git,ssh,php-deployer,Php,Git,Ssh,Php Deployer,我使用Deployer将项目克隆到服务器上,但尽管设置了部署密钥,但由于某些原因,通过SSH克隆失败: ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 我已采取的步骤: 在克隆项目的服务器上生成新密钥:ssh-keygen-t rsa-
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已采取的步骤:
ssh-keygen-t rsa-b4096-C“您的_email@example.com“
,我的密钥文件位于以下位置:表单\u simple\u id\u rsa
,当然还有发布版本eval
并添加密钥:ssh add-k~/.ssh/form\u simple\u id\u rsa
表单\u simple\u id\u rsa.pub
密钥作为部署密钥添加到我的存储库中,repo所有者不是我的帐户,我是此repo的合作者,但服务器的密钥链接到项目,因此它应该能够克隆host('project'))
->港口(myport)
->identityFile(“~/.ssh/form\u simple\u id\u rsa”)
->阶段(‘生产’)
->集合('存储库','git@github.com:company/project.git')
->用户('根')
->set('deploy_path','/var/www/path');
说ssh-A-tt命令失败。如果这不是部署程序版本问题(),我会尝试:
- 生成和测试没有密码短语的密钥(为了避免
,请确保不需要密码短语)ssh添加步骤
- 使用
生成密钥,以使用旧的PEM格式而不是新的OPENSSH格式,以防有任何影响-m PEM
Exit Code: 128(Invalid exit argument)