Skip to content

Not Honoring GIT_SSH_COMMAND #1377

Closed
Closed
@theherk

Description

@theherk

I use an SSH proxy to reach a private git host. This is done by first authenticating then using a tunnel for the connection. This tunnel is routed using GIT_SSH_COMMAND. I have it set using both environment:

export GIT_SSH_COMMAND='ssh -F ~/.ssh/gproxy.cfg'

and git config:

[core]
    sshCommand = ssh -F ~/.ssh/gproxy.cfg

since not everything honors the git config option.

This works well. I mostly use magit, but from the command line I can git pull. However, in gitui when I press f (only in repositories using this tunnel), I get connection timeout. So it seems this is not honoring the GIT_SSH_COMMAND.

To Reproduce

  1. Create an ssh tunnel to your git host.
  2. Ensure git pull fails.
  3. Export GIT_SSH_COMMAND to the tunnel.
  4. Ensure git pull succeeds.
  5. Launch gitui.
  6. Pull with f.

Screenshots

Screenshot 2022-10-04 at 09 23 29

Context

  • OS/Distro + Version: macOS Monterey 12.6
  • GitUI Version: 0.21.0
  • Rust version: rustc 1.64.0-nightly (9067d5277 2022-07-28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions