如何在外壳程序脚本中使用svnserve通过ssh在远程计算机上运行svn

时间:2018-09-21 13:44:12

标签: svn ssh svnserve

我已经在SVN图书网站上浏览了this。问题是我有一个authorized_keys文件,其中有一个条目,如:

  command="svnserve -t --tunnel-user=someUser -r /home/someUser",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB...

当我尝试从客户端运行svn时,效果很好。但我也想使用此帐户远程运行其他命令。所以我想将以上内容转换为:

  command="/home/someUser/somescript.sh $SSH_ORIGINAL_COMMAND",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB...

在somescript.sh(这是一个包装脚本)中,我想从客户端检查命令,然后视情况而定调用svnserve或其他任何非svn命令。

它不起作用。我试图让somescript.sh回显参数。没事。

错误是: svn:E170013:无法连接到URL上的存储库。...

我在authorized_keys中恢复为svnserve -t ...,一切都很好。它按预期工作。有什么办法吗?

0 个答案:

没有答案
相关问题