首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >svn: E170013:无法连接到位于URL的存储库

svn: E170013:无法连接到位于URL的存储库
EN

Stack Overflow用户
提问于 2016-07-07 18:34:20
回答 3查看 10.8K关注 0票数 3

之前我使用ubuntu 12.04作为我的项目。当我使用12.04时,我常常通过Openssh服务器签出源代码,我可以签出源代码。

现在我迁移到Ubuntu 16.04。现在我正在尝试通过openssh从相同的svn中检出它没有发生,我得到了以下错误

代码语言:javascript
运行
复制
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://XXXXX@YYYY.ZZZ.com/repos/'
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

然后我尝试调试,得到了以下日志

代码语言:javascript
运行
复制
OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to svnsm.ami.com [172.16.96.74] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1
debug1: match: OpenSSH_3.8.1p1 pat OpenSSH_3.* compat 0x01000000
debug1: Authenticating to svnsm.ami.com:22 as 'chinnainah'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha1
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<7680<8192) sent
debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: got SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: ssh-rsa SHA256:dZPbSQEmL+bIU8lsK0c3M00FHYTXdeu+Ki3w1Q6mnsg
debug1: Host 'svnsm.ami.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: Skipping ssh-dss key /home/chinniah/keys/chinniah.pri - not in PubkeyAcceptedKeyTypes
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Trying private key: /root/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://chinnainah@svnsm.ami.com/svnrepos/granada'
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

有谁能帮我解决这个问题吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2016-08-10 02:49:35

在将14.04升级到16.04后遇到了完全相同的问题。

在这里找到了解决方案:http://www.joho.se/2016/05/13/ssh-keys-are-no-longer-working-after-upgrading-to-ubuntu-16-04-lts-help/

错误在这里:

代码语言:javascript
运行
复制
debug1: Skipping ssh-dss key /home/chinniah/keys/chinniah.pri - not in PubkeyAcceptedKeyTypes

临时修复是将此行添加到您的home/yourusername/.ssh/config文件中。

代码语言:javascript
运行
复制
PubkeyAcceptedKeyTypes=+ssh-dss

现在重新启动ssh:

代码语言:javascript
运行
复制
sudo service ssh restart

问题出在ssh密钥文件上。默认情况下,OpenSSH 7不允许使用ssh-dss密钥。下面是我找到的一篇描述原因的文章:https://security.stackexchange.com/questions/112802/why-openssh-deprecated-dsa-keys

票数 2
EN

Stack Overflow用户

发布于 2019-08-08 13:28:24

服务器连接问题

svn: E170013:无法连接到位于URL ' svn: //Ip/repo‘svn: E000113: Can't connect to host’的存储库

解决方案:

请检查您的防火墙

在防火墙中添加svn端口并重新加载

防火墙-cmd--永久--zone=public --add-port=3690/tcp firewall-cmd --reload

票数 0
EN

Stack Overflow用户

发布于 2020-04-06 08:41:12

我遇到了与主要答案中提到的相同的问题,但在多次尝试后,我的IP地址被屏蔽了,这让问题变得更加复杂。当我开始向ssh添加-v标志时,我没有得到任何信息。通过使用不同的连接,我最终能够登录到服务器。然后我从/etc/hosts.deny (或者你的监控软件像/usr/share/denyhosts/data一样存储它们的任何地方)上删除了我的IP。

在我的特殊情况下,我通过添加ssh默认接受的pub/priv密钥类型修复了它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38243278

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档