Skip to content

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

@msbit

Description

@msbit
  • Deployer version: v7.4.0
  • Deployment OS: macOS

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions