Replies: 2 comments 7 replies
-
What’s the error? Investigate from there. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any news? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i have a github deploy key for a priva repository, i have a deploy.php file like this:
`namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'my_project');
// Project repository
set('repository', '[email protected]:eppak/myrepository.git');
// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true);
// Shared files/dirs between deploys
set('shared_files', []);
set('shared_dirs', []);
// Writable dirs by web server
set('writable_dirs', []);
// Hosts
set('allow_anonymous_stats', false);
localhost()
->forwardAgent(true)
->multiplexing(true)
->set('deploy_path', '/home/user/tmp')
->identityFile('/home/user/user/sshkey')
->addSshOption('UserKnownHostsFile', '/dev/null')
->addSshOption('StrictHostKeyChecking', 'no')
->configFile('/home/user/tmp/ssh_config');
// Tasks
desc('Deploy your project');
task('deploy', [
'deploy:info',
'deploy:prepare',
'deploy:lock',
'deploy:release',
'deploy:update_code',
'deploy:shared',
'deploy:writable',
'deploy:vendors',
'deploy:clear_paths',
'deploy:symlink',
'deploy:unlock',
'cleanup',
'success'
]);`
ssh_config file:
Host * StrictHostKeyChecking no UserKnownHostsFile=/dev/nul
Running sudo -u user dep deploy lead me to an error "Exit Code: 128(Invalid exit argument)", this is due to the invalid credentials. But if i modify fingerprint check in /etc/ssh/ssh_config and put sshkey in /home/user/.ssh/id_rsa it works.
What i'm missing? I suppose this is my mistake but i cannot figure why.
Thansk
Beta Was this translation helpful? Give feedback.
All reactions