【发布时间】:2013-06-02 08:55:00
【问题描述】:
我可以访问一个 SSH 帐户,该帐户可以访问 GIT 服务器,并且能够在此 SSH 登录中克隆/推送/拉取存储库。但是我无法从其他地方访问这个 repo。
在我使用的 SSH 帐户上,
git clone git@gitserver:proj/myrepo.git
克隆存储库。
我尝试使用从另一台机器到 git 服务器的 ssh 隧道设置,
ssh -L 3333:gitserver:22 userid@sshserver
git clone ssh://localhost:3333/proj/repo.git
但是,我不断收到提示输入用户“git”的密码。有什么想法我在这里做错了吗?
【问题讨论】:
标签: git ssh ssh-tunnel