bzr 无法连接到 ssh 主机(因为 python?)
直到今天,我已经能够使用 bzr pull server:path/to/trunk
,但是今天我收到一个错误:
Unable to connect to SSH host server; EOF during negotiation
不清楚为什么会发生此错误,但这是来自 的回溯>~/.bzr.log
关于如何解决这个问题有什么想法吗?
Mon 2011-02-21 16:36:04 -0600
0.022 bazaar version: 2.1.1
0.022 bzr arguments: [u'pull']
0.026 looking for plugins in /home/user/.bazaar/plugins
0.026 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.062 encoding stdout as sys.stdout encoding 'UTF-8'
0.133 opening working tree '/home/user/pecan'
0.178 ssh implementation is OpenSSH
0.697 Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
return self.run_direct(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
return self._operation.run_simple(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
result = func(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 993, in run
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 169, in open
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 843, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
redirected)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
return action(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 860, in find_format
transport, _server_formats=_server_formats)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1820, in find_format
return format.probe_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1830, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 435, in get_bytes
f = self.get(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 425, in get
f = self._get_sftp().file(path, mode='rb')
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 397, in _get_sftp
connection, credentials = self._create_connection()
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 389, in _create_connection
self._host, self._port)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ssh.py", line 376, in connect_sftp
self._raise_connection_error(host, port=port, orig_error=e)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ssh.py", line 252, in _raise_connection_error
orig_error=orig_error)
SocketConnectionError: Unable to connect to SSH host server; EOF during negotiation
0.698 Transferred: 0KiB (0.0K/s r:0K w:0K)
0.698 return code 3
Until today, I have been able to use bzr pull server:path/to/trunk
, but today I get an error:
Unable to connect to SSH host server; EOF during negotiation
It is not clear why this error occurs, but this is the traceback from ~/.bzr.log
Any ideas about how to fix this?
Mon 2011-02-21 16:36:04 -0600
0.022 bazaar version: 2.1.1
0.022 bzr arguments: [u'pull']
0.026 looking for plugins in /home/user/.bazaar/plugins
0.026 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.062 encoding stdout as sys.stdout encoding 'UTF-8'
0.133 opening working tree '/home/user/pecan'
0.178 ssh implementation is OpenSSH
0.697 Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
return self.run_direct(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
return self._operation.run_simple(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
result = func(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 993, in run
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 169, in open
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 843, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
redirected)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
return action(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 860, in find_format
transport, _server_formats=_server_formats)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1820, in find_format
return format.probe_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1830, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 435, in get_bytes
f = self.get(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 425, in get
f = self._get_sftp().file(path, mode='rb')
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 397, in _get_sftp
connection, credentials = self._create_connection()
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/sftp.py", line 389, in _create_connection
self._host, self._port)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ssh.py", line 376, in connect_sftp
self._raise_connection_error(host, port=port, orig_error=e)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ssh.py", line 252, in _raise_connection_error
orig_error=orig_error)
SocketConnectionError: Unable to connect to SSH host server; EOF during negotiation
0.698 Transferred: 0KiB (0.0K/s r:0K w:0K)
0.698 return code 3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
导致此错误的原因是我已添加
到
.bashrc
,并且bzr status
是一个无效的别名,可能会混淆服务器的 bzrA bug 报告 给 bzr 表明类似的错误可能是由服务器防火墙设置的更改引起的
This error was caused because I had added
to
.bashrc
, andbzr status
is an invalid alias name that presumably confused the server's bzrA bug report to bzr indicates that a similar error can be caused by changes to the server's firewall settings