Open floran974 opened 6 years ago
Is the SSH key automatically loaded or do you have to add it to the ssh-agent manually? Is it password-protected for example?
Maybe this is because hostname should be in known_hosts
on server
I may be pretty late, but you also have to be sure that you have an SSH agent running in your local machine and that you've added the key to it by using ssh-add command.
After many hours, that's what was causing my problem: The server and my local machine had the correct configuration with ForwardAgent and AllowAgentForwarding, I was using useSshAgentForwarding from the bundle and everything was right, but my ssh key was never forwarded because it was not running on an ssh agent.
Hi,
when I try to execute php bin/console deploy,
I have this error :
' The command "(export SYMFONY_ENV=prod; cd /home/gbdd/SandBox/deploy-test && git ls-remote git@gitlab.com:GBDD/AAA.git master)" failed.
Exit Code: 128(Invalid exit argument)
Working directory: /home/gbdd/SandBox/deploy-test
Permission denied (publickey).
fatal: Could not read from remote repository.'
But I think I have Permission because when I execute git ls-remote git@gitlab.com:GBDD/AAA.git master on my console it's work.
Thank s for your help