如果服务器使用不同的SSH端口,请在控制台上签出SVN

如果服务器使用不同的SSH端口,请在控制台上签出SVN,svn,ssh,port,Svn,Ssh,Port,在我的服务器上,我使用了22以外的另一个SSH端口 在我的Smartgit GUI中,在使用标准端口22之前,我仍然可以通过在repo url中添加端口来访问svn存储库: svn+ssh://example.org/var/svn-repos/project/trunk 现在我使用端口1234: svn+ssh://example.org:1234/var/svn-repos/project/trunk 这在Smartgit中有效,但如果我尝试在控制台上使用它,则无效: ssh exam

在我的服务器上,我使用了22以外的另一个SSH端口

在我的Smartgit GUI中,在使用标准端口22之前,我仍然可以通过在repo url中添加端口来访问svn存储库:

svn+ssh://example.org/var/svn-repos/project/trunk 
现在我使用端口1234:

svn+ssh://example.org:1234/var/svn-repos/project/trunk
这在Smartgit中有效,但如果我尝试在控制台上使用它,则无效:

ssh example.org -p 1234
cd /tmp/
svn co svn+ssh://example.org:1234/var/svn-repos/project/trunk
我明白了

ssh: Could not resolve hostname example.org:1234: Name or service not known
svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly

我查看了/etc/subversion/config的内部,但在我看来,如果我在那里更改任何内容,我会造成更多的伤害而不是好处。不幸的是,我认为在~/.subversion/config中指定的自定义隧道是最好的选择