通过远程连接使用 git 的问题

Issue using git through remote connection

我在家时试图访问位于工作内部网络上的存储库。我用来访问这个内部网络的 shell 没有 git,当使用 scp 访问 repo 时我得到一个 "GitLab: Disallowed command" 也没有 gcc 所以我不是这样当然我可以从源代码编译一个便携版本。有什么想法吗?

您可以通过 ssh 访问您正在使用的 shell 吗?你可以做ssh转发吗?如果是这样,你可以做类似

ssh -L 2222:ip.of.gitlab:22 user@shellhost

然后只需使用 localhost:2222 作为您的存储库,ssh 将通过 shell 主机将您的连接隧道连接到 gitlab 存储库