How to specify ssh key for git repository? #3079
-
|
I have ssh key in This key is added in my repo and test connection works fine: BUT I have lines with the same key for the server: host('*server*')
...
->configFile('~/.ssh/config')
->identityFile('~/.ssh/my_key')
...;And I can't find any key option for repository: // Project repository
set('repository', 'git@bitbucket.org:Me/my-repo.git');Any ideas? Deployer 6.8.0 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Your host doesn’t have same key. Two options: use agent forwarding or a separate key specially for your host (deploy keys). |
Beta Was this translation helpful? Give feedback.
-
According to documentation, it's used by default
Do you mean creating a Bitbucket key on the remote/deploy server? |
Beta Was this translation helpful? Give feedback.
-
|
But why agent forwarding isn't working? |
Beta Was this translation helpful? Give feedback.
-
|
Agent forwarding finally works with: Also +1 line P.S. The last step is to find how to register it in Dockerfile |
Beta Was this translation helpful? Give feedback.
Agent forwarding finally works with:
Also +1 line
ForwardAgent yesin~/.ssh/config, I don't know if it helped or not.P.S. The last step is to find how to register it in Dockerfile