宝塔Linux版 终端 终端 未知错误: Traceback (most recent call last) 出错修复

未知错误: Traceback (most recent call last): File "class/flask_sockets.py", line 30, in __call__ handler, values = adapter.match() File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match raise NotFound() werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "class/ssh_terminal.py", line 110, in connect pkey = paramiko.RSAKey.from_private_key(p_file) File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 256, in from_private_key key = cls(file_obj=file_obj, password=password) File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/rsakey.py", line 52, in __init__ self._from_private_key(file_obj, password) File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/rsakey.py", line 180, in _from_private_key self._decode_key(data) File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/rsakey.py", line 202, in _decode_key ).private_key(default_backend()) File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py", line 311, in private_key return backend.load_rsa_private_numbers(self) File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 630, in load_rsa_private_numbers return _RSAPrivateKey(self, rsa_cdata, evp_pkey) File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 320, in __init__ raise ValueError("Invalid private key", errors) ValueError: ('Invalid private key', [_OpenSSLErrorWithText(code=67764350, lib=4, func=160, reason=126, reason_text=b'error:040A007E:rsa routines:RSA_check_key_ex:iqmp not inverse of q')])

 卸载 paramiko 插件重新安装就可以了

cd /www/server/panel/pyenv/bin
./pip uninstall paramiko
./pip install paramiko

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值