说明
使用
svn co svn+ssh://xxxxxx
checkout代码时,报ssh错误
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://xxxxxx'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
原因
当ssh 的pub/private key没有问题的时候,以下方式可以解决:
在 ~/.ssh/config 当中加入以下信息
PubkeyAcceptedKeyTypes +ssh-rsa
新的ssh客户端不支持ssh-rsa算法,要修改本地配置重新使用ssh-rsa算法