TortiseSVN svn+ssh Error: Unable to connect to a repository at URL … Network connection closed unexpectedly

前端 未结 6 1452
醉梦人生
醉梦人生 2021-01-12 23:37

I\'m having problems accessing an SVN repository using TortoiseSVN 1.7.8.

The SVN repository is on a CentOS 6.3 box with openssh 5.3p1:81.el6 and appear

6条回答
  •  -上瘾入骨i
    2021-01-13 00:07

    In my case the cause was, that the svnuser hasn't a shell (it was /bin/false).
    This isn't visible in the ssh log even with debug ssh -vvv.

    When you have this type of problem your debug output will look like this

    debug1: Entering interactive session.
    debug1: Remote: Forced command.
    debug1: Remote: Port forwarding disabled.
    debug1: Remote: Agent forwarding disabled.
    debug1: Remote: X11 forwarding disabled.
    debug1: Remote: Pty allocation disabled.
    debug1: Remote: Forced command.
    debug1: Remote: Port forwarding disabled.
    debug1: Remote: Agent forwarding disabled.
    debug1: Remote: X11 forwarding disabled.
    debug1: Remote: Pty allocation disabled.
    debug1: Sending environment.
    debug1: Sending env LANG = en_GB.UTF-8
    debug1: Sending command: svnserve -t
    debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
    debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
    debug1: channel 0: free: client-session, nchannels 1
    

    When the shell is set to /bin/bash the log changes to

    debug1: Sending env LANG = en_GB.UTF-8
    debug1: Sending command: svnserve -t
    Path: MyRepo
    URL: svn+ssh://svnuser@myServer.com/MyRepo
    

提交回复
热议问题