在非标准端口上通过ssh进行隧道传输,因为我必须在端口10401上的远程服务器上运行svn(它是'svnserve'),我在协议2.0的日志行应该是之前得到一个挂起:
本地方框uname:Linux localbox 3.0.0-14-generic#23-Ubuntu SMP Mon 11月21日20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU / Linux
远程框取消名称(服务器名称更改为'foo'):Linux foo 2.6.32.27-grsec#5 SMP Thu Dec 30 01:24:01 PST 2010 i686未知的未知GNU / Linux
christopherbalz@localbox:~$ svn co --username=christopherbalz svn+ssh10401://foo.bar.com/baz
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /home/christopherbalz/.ssh/config
debug1: Applying options for foo.bar.com
debug1: Applying options for foo.bar.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to foo.bar.com [208.95.105.37] port 10401.
debug1: Connection established.
debug1: identity file /home/christopherbalz/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/christopherbalz/.ssh/id_rsa-cert type -1
debug1: identity file /home/christopherbalz/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/christopherbalz/.ssh/id_rsa-cert type -1
< hangs here forever >
相比之下,这个服务器的普通ssh提供与上面相同的日志加上这个(以及更多,不在这里粘贴)之后,就在日志挂起的地方:
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8
debug1: match: OpenSSH_5.8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
. . .
由于'protocol 2.0'日志直接出现,我想知道在svn + ssh下是否存在日志中提到的兼容模式的问题?如果是这样,如何排除故障?如果没有,可能导致此挂起的原因是什么?