deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.41k stars 1.47k forks source link

Source code SSH settings from local .ssh/config #3825

Closed msbit closed 1 month ago

msbit commented 1 month ago

I have a a repository set via something like:

set('repository', 'ssh://code.foo.example.com/repo');

a host set up something like:

host('target.example.com')
    ->set('remote_user', 'user')
    ->set('deploy_path', '~/repo');

and per-user SSH settings configured for this repository on my local machine, in .ssh/config, something like:

Host code.*.example.com
  Ciphers       aes256-ctr
  IdentityFile  ~/.ssh/example_rsa
  KexAlgorithms diffie-hellman-group-exchange-sha256
  User          different-user

These settings are not used when attempting to fetch the repo during the deploy:update_code step, so this step fails.

What can I do to achieve this?