【待反馈】宝塔SSH终端报错
Ubuntu 20.04.3 LTS x86_64(Py3.7.9)4核8G
免费版 Beta7.9.46
在使用宝塔ssh终端时出现以下问题,使用其他ssh终端(如xshell,宝塔远程工具)均可正常连接
未知错误: Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 148, in connect
self._tp.auth_publickey(username=self._user, key=pkey)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/transport.py", line 1580, in auth_publickey
return self.auth_handler.wait_for_response(my_event)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/auth_handler.py", line 236, in wait_for_response
raise e
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
sig = self.private_key.sign_ssh_data(blob)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/dsskey.py", line 116, in sign_ssh_data
).private_key(backend=default_backend())
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 250, in private_key
return backend.load_dsa_private_numbers(self)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 852, in load_dsa_private_numbers
dsa._check_dsa_private_numbers(numbers)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 147, in _check_dsa_private_numbers
_check_dsa_parameters(parameters)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 139, in _check_dsa_parameters
raise ValueError("q must be exactly 160, 224, or 256 bits long")
ValueError: q must be exactly 160, 224, or 256 bits long
您好,尝试修复下环境。不要在面板里面的终端执行
使用SSH工具或者堡塔SSH终端登录服务器执行
##删除python环境
rm -rf /www/server/panel/pyenv
##修复python环境,并且面板更新到最新版本
curl http://download.bt.cn/install/update_panel.sh|bash 运维风光 发表于 2022-9-24 15:26
您好,尝试修复下环境。不要在面板里面的终端执行
使用SSH工具或者堡塔SSH终端登录服务器执行
依然报错
未知错误: Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 148, in connect
self._tp.auth_publickey(username=self._user, key=pkey)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/transport.py", line 1580, in auth_publickey
return self.auth_handler.wait_for_response(my_event)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/auth_handler.py", line 236, in wait_for_response
raise e
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
sig = self.private_key.sign_ssh_data(blob)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/dsskey.py", line 116, in sign_ssh_data
).private_key(backend=default_backend())
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 250, in private_key
return backend.load_dsa_private_numbers(self)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 852, in load_dsa_private_numbers
dsa._check_dsa_private_numbers(numbers)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 147, in _check_dsa_private_numbers
_check_dsa_parameters(parameters)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 139, in _check_dsa_parameters
raise ValueError("q must be exactly 160, 224, or 256 bits long")
ValueError: q must be exactly 160, 224, or 256 bits long 您好,请问您升级到最新版的面板后问题解决了吗?没有解决的话麻烦重新发帖以便处理。
页:
[1]