Skip to content

Provide a parameter to config ssh options #293

Description

@albertoft

Currently ssh command is like:

set newArgs($increment(newArgs)) = "core.sshCommand=ssh -F /dev/null -o StrictHostKeyChecking=accept-new -i "_privateKeyFile

In some cases you need to specify a ssh config file to specify additional parameters.

For instance, to connect some Git repos hosted in a TFS server we realised we needed to specify:

Host somehost
HostName somehost
IdentityFile C:\Users\someuser\.ssh\id_rsa
IdentitiesOnly yes
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes=ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc

It would be great to have some parameter to specify the ssh config file to use (or no -F option at all so default is used).

Activity

  1. added
    enhancementNew feature or request
    customerBased on customer feedback (as opposed to something identified by developers)
    on Oct 24, 2023
  2. isc-pbarton commented on Oct 6, 2025

    @isc-pbarton
    Collaborator

    Ran into this with another customer last week. If we can set an SSH config file, that will allow organizations to use GitHub remotes with SSH even if they block outgoing traffic over port 22. See https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port#enabling-ssh-connections-over-https

  3. self-assigned this
    on Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

customerBased on customer feedback (as opposed to something identified by developers)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions