【发布时间】:2016-01-02 18:02:31
【问题描述】:
我有三台机器
local (windows)
serverA (linux) with username as userA
serverB (linux) with username as userB
我想使用 TortoiseHg for windows 将serverB 中的 hg 存储库克隆到我的本地计算机。机器serverB 只能是sshed,尽管serverA。所以在 winScp/PuTTY 中我使用隧道选项通过serverA 连接到serverB。但是我如何在 TortoiseHg 中做到这一点?
显然我不能使用hg clone ssh://userB@serverB://<path to repo>。但是有没有办法使用多个 ssh 命令。我尝试了以下方法,但它不起作用:
$cat ~/.ssh/config
host serverB.example.com serverB
ProxyCommand /usr/bin/ssh serverA.example.com /usr/bin/nc %h %p
【问题讨论】:
-
您所说的“没有工作”是什么意思?您是否也尝试过代理命令的
-w方式?
标签: ssh mercurial tortoisehg hgrc