jumpserver / coco

Jumpserver ssh/ws server
GNU General Public License v3.0
157 stars 126 forks source link

Exception: Error reading SSH protocol banner #114

Closed opsarno closed 2 months ago

opsarno commented 6 years ago

日志中的报错

2018-10-22 11:11:44 [sshd WARNING] SSH negotiation failed
2018-10-22 11:11:57 [transport ERROR] Exception: Error reading SSH protocol banner
2018-10-22 11:11:57 [transport ERROR] Traceback (most recent call last):
2018-10-22 11:11:57 [transport ERROR]   File "/opt/soft/jumpserver/1.4.3/venv/lib/python3.6/site-packages/paramiko/transport.py", line 2044, in _check_banner
2018-10-22 11:11:57 [transport ERROR]     buf = self.packetizer.readline(timeout)
2018-10-22 11:11:57 [transport ERROR]   File "/opt/soft/jumpserver/1.4.3/venv/lib/python3.6/site-packages/paramiko/packet.py", line 353, in readline
2018-10-22 11:11:57 [transport ERROR]     buf += self._read_timeout(timeout)
2018-10-22 11:11:57 [transport ERROR]   File "/opt/soft/jumpserver/1.4.3/venv/lib/python3.6/site-packages/paramiko/packet.py", line 542, in _read_timeout
2018-10-22 11:11:57 [transport ERROR]     raise EOFError()
2018-10-22 11:11:57 [transport ERROR] EOFError
2018-10-22 11:11:57 [transport ERROR] 
2018-10-22 11:11:57 [transport ERROR] During handling of the above exception, another exception occurred:
2018-10-22 11:11:57 [transport ERROR] 
2018-10-22 11:11:57 [transport ERROR] Traceback (most recent call last):
2018-10-22 11:11:57 [transport ERROR]   File "/opt/soft/jumpserver/1.4.3/venv/lib/python3.6/site-packages/paramiko/transport.py", line 1893, in run
2018-10-22 11:11:57 [transport ERROR]     self._check_banner()
2018-10-22 11:11:57 [transport ERROR]   File "/opt/soft/jumpserver/1.4.3/venv/lib/python3.6/site-packages/paramiko/transport.py", line 2049, in _check_banner
2018-10-22 11:11:57 [transport ERROR]     'Error reading SSH protocol banner' + str(e)
2018-10-22 11:11:57 [transport ERROR] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
2018-10-22 11:11:57 [transport ERROR] 
2018-10-22 11:11:57 [sshd WARNING] SSH negotiation failed

这个错误是什么导致的呢?

xionghui commented 6 years ago

我也遇到同样的错误

wxg10521 commented 6 years ago

请问你们解决了吗 我也有这个问题

Coyote5 commented 5 years ago

我也遇到了同样的问题,但可以正常使用。我的版本是1.4.0, @ibuler 请问在1.4.0里怎么修复这个问题。

lujin1 commented 5 years ago

我的1.4.4页遇见同样的问题了,请问如何解决?

2018-12-27 12:03:51 [transport ERROR] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner 2018-12-27 12:03:51 [transport ERROR] 2018-12-27 12:44:07 [transport ERROR] Exception: Error reading SSH protocol banner 2018-12-27 12:44:07 [transport ERROR] Traceback (most recent call last): 2018-12-27 12:44:07 [transport ERROR] File "/opt/py3/lib64/python3.6/site-packages/paramiko/transport.py", line 2044, in _check_banner 2018-12-27 12:44:07 [transport ERROR] buf = self.packetizer.readline(timeout) 2018-12-27 12:44:07 [transport ERROR] File "/opt/py3/lib64/python3.6/site-packages/paramiko/packet.py", line 353, in readline 2018-12-27 12:44:07 [transport ERROR] buf += self._read_timeout(timeout) 2018-12-27 12:44:07 [transport ERROR] File "/opt/py3/lib64/python3.6/site-packages/paramiko/packet.py", line 542, in _read_timeout 2018-12-27 12:44:07 [transport ERROR] raise EOFError() 2018-12-27 12:44:07 [transport ERROR] EOFError 2018-12-27 12:44:07 [transport ERROR] 2018-12-27 12:44:07 [transport ERROR] During handling of the above exception, another exception occurred: 2018-12-27 12:44:07 [transport ERROR] 2018-12-27 12:44:07 [transport ERROR] Traceback (most recent call last): 2018-12-27 12:44:07 [transport ERROR] File "/opt/py3/lib64/python3.6/site-packages/paramiko/transport.py", line 1893, in run 2018-12-27 12:44:07 [transport ERROR] self._check_banner() 2018-12-27 12:44:07 [transport ERROR] File "/opt/py3/lib64/python3.6/site-packages/paramiko/transport.py", line 2049, in _check_banner 2018-12-27 12:44:07 [transport ERROR] 'Error reading SSH protocol banner' + str(e) 2018-12-27 12:44:07 [transport ERROR] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner 2018-12-27 12:44:07 [transport ERROR] 2018-12-27 12:53:44 [transport ERROR] Socket exception: Connection timed out (110)

wwtg99 commented 5 years ago

这个错误好像是连接超时了,我有一些机器网络不好,连接到4.5s就超时报错了,测试连接没有问题,修改 conf.py 里的SSH_TIMEOUT 也没有任何用,其他网络好的机器就一点问题没有。 也有可能是登陆权限问题,我把系统用户都推送一遍就可以登陆了。可能是目标机器上没有对应的系统用户,现在显示的错误和之前版本的不一样了。

chenyanter commented 5 years ago

我这里使用网关的机器都遇到了这个问题