相忘于江湖

泉涸,鱼相与处于陆,相呴以湿,相濡以沫,不如相忘于江湖。《庄子.大宗师篇》

access Mercurial workspace through ssh tunnel

Monday Nov 27, 2006

It's quite easy to setup ssh tunnel for Mercurial workspace:

$ mkdir -p .ssh

$ cat <<EOF > .ssh/authorized_keys

command="/usr/demo/mercurial/hg-ssh /export/scm/hgroot/repos/g11n-cws",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-[type] [key] 

EOF

 

Please be sure to put above contents into one line (though very long).

More details can be found at selenic.com

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed