各位大佬,我在添加资产时选择Telnet未选择SSH,Windows端手动用telnet连接是正常的,但是用Jumpserver就报错,请求解答。具体如下:
环境介绍
JumpServer 社区版 v4.10.1
运行方式:安装包运行
浏览器版本:Chrome 137.0.7151.120
报错信息如下:
2025-06-30 11:32:33 >>> 任务准备阶段
2025-06-30 11:32:33 >>> 开始执行任务
2025-06-30 11:32:35
PLAY [all] *********************************************************************
2025-06-30 11:32:35
TASK [Test asset connection (paramiko)] ****************************************
2025-06-30 11:32:37 [WARNING]: Distribution debian 11 on host test should use /usr/bin/python3, but
2025-06-30 11:32:37 is using /opt/py3/bin/python3.11, since the discovered platform python
2025-06-30 11:32:37 interpreter was not present. See https://docs.ansible.com/ansible-
2025-06-30 11:32:37 core/2.14/reference_appendices/interpreter_discovery.html for more information.
2025-06-30 11:32:37 fatal: [test]: FAILED! => {“ansible_facts”: {“discovered_interpreter_python”: “/opt/py3/bin/python3.11”}, “changed”: false, “module_stderr”: “Exception (client): Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\nTraceback (most recent call last):\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2292, in _check_banner\n buf = self.packetizer.readline(timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/py3/lib/python3.11/site-packages/paramiko/packet.py", line 380, in readline\n return u(buf)\n ^^^^^^\n File "/opt/py3/lib/python3.11/site-packages/paramiko/util.py", line 333, in u\n return s.decode(encoding)\n ^^^^^^^^^^^^^^^^^^\nUnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2113, in run\n self._check_banner()\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2296, in _check_banner\n raise SSHException(\nparamiko.ssh_exception.SSHException: Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\n\nException (client): Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\nTraceback (most recent call last):\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2292, in _check_banner\n buf = self.packetizer.readline(timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/py3/lib/python3.11/site-packages/paramiko/packet.py", line 380, in readline\n return u(buf)\n ^^^^^^\n File "/opt/py3/lib/python3.11/site-packages/paramiko/util.py", line 333, in u\n return s.decode(encoding)\n ^^^^^^^^^^^^^^^^^^\nUnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2113, in run\n self._check_banner()\n File "/opt/py3/lib/python3.11/site-packages/paramiko/transport.py", line 2296, in _check_banner\n raise SSHException(\nparamiko.ssh_exception.SSHException: Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte\n\n”, “module_stdout”: “\n{"failed": true, "msg": "Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte", "invocation": {"module_args": {"become": false, "become_method": "su", "become_password": "", "become_private_key_path": "", "become_user": "", "gateway_args": "", "login_host": "10.89.8.19", "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "login_port": 23, "login_private_key_path": "", "login_secret_type": "password", "login_user": "admin", "old_ssh_version": false, "recv_timeout": 30, "delay_time": 2, "prompt": ".", "answers": ".", "commands": null}}}\n\n{"failed": true, "msg": "Error reading SSH protocol banner’utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte", "invocation": {"module_args": {"become": false, "become_method": "su", "become_password": "", "become_private_key_path": "", "become_user": "", "gateway_args": "", "login_host": "10.89.8.19", "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "login_port": 23, "login_private_key_path": "", "login_secret_type": "password", "login_user": "admin", "old_ssh_version": false, "recv_timeout": 30, "delay_time": 2, "prompt": ".", "answers": ".", "commands": null}}}\n”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}
2025-06-30 11:32:37
PLAY RECAP *********************************************************************
test : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2025-06-30 11:32:37
Summery:
- total_assets: 1
- Using: 3.99s
2025-06-30 11:32:37 Task assets.tasks.ping.test_assets_connectivity_task[bc9ae6db-c40c-4e80-bb0a-c03cc389d058] succeeded in 4.098791772034019s: None