Accessing a git repository via ssh behind a firewall

前端 未结 3 1700
北荒
北荒 2021-01-30 15:25

I would like to access (clone/push/pull) a private (via ssh) git repository while behind a corporate firewall that only allows http proxy access. I have written a robust Java (d

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 15:39

    Can you get a normal ssh (command-line) session going? If so, git should also work.

    When using ssh, git should pick up your configuration options in .ssh/config. If that is not enough, you can point the environment variable GIT_SSH at a modified version of ssh (or shell script wrapper).

提交回复
热议问题