当前位置:论坛首页 > Linux面板 > 求助

【待反馈】终端报错

发表在 Linux面板2025-1-15 01:30 [复制链接] 4 270

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:9.4.0

系统版本:debian11

问题描述:终端报错

相关截图(日志、错误):
未知错误: Traceback (most recent call last):
                                              File "/www/server/panel/class/ssh_terminal.py", line 178, 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 179, in _from_private_key
          data = self._read_private_key("RSA", file_obj, password)
                                                                    File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 337, in _read_private_key
                                   data = self._read_private_key_openssh(lines[start:end], password)
                                                                                                      File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 439, in _read_private_key_openssh
                                                                             "private key file is encrypted"
                                                                                                            paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted
                                           During handling of the above exception, another exception occurred:
                                                                                                              Traceback (most recent call last):
                                                                                                                                                 File "/www/server/panel/class/ssh_terminal.py", line 186, in connect
                                                                         pkey = paramiko.Ed25519Key.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/ed25519key.py", line 63, in __init__
                                                                                                        signing_key = self._parse_signing_key_data(data, password)
                    File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/ed25519key.py", line 97, in _parse_signing_key_data
                                                                                                                                              "Private key file is encrypted"
                             paramiko.ssh_exception.PasswordRequiredException: Private key file is encrypted
                                                                                                            During handling of the above exception, another exception occurred:
                               Traceback (most recent call last):
                                                                   File "/www/server/panel/class/ssh_terminal.py", line 194, in connect
                                                                                                                                           pkey = paramiko.ECDSAKey.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/ecdsakey.py", line 123, in __init__
                       self._from_private_key(file_obj, password)
                                                                   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/ecdsakey.py", line 282, in _from_private_key
                                      data = self._read_private_key("EC", file_obj, password)
                                                                                               File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 337, in _read_private_key
                                                              data = self._read_private_key_openssh(lines[start:end], password)
                                                                                                                                 File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 439, in _read_private_key_openssh
                                                                                                        "private key file is encrypted"
                                                                                                                                       paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted
                                                                      During handling of the above exception, another exception occurred:
                                                                                                                                         Traceback (most recent call last):
                             File "/www/server/panel/class/ssh_terminal.py", line 210, in connect
                                                                                                     pkey = paramiko.DSSKey.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/dsskey.py", line 62, in __init__
                                                                                                                            self._from_private_key(file_obj, password)
                        File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/dsskey.py", line 228, in _from_private_key
                                                                                                                                         data = self._read_private_key("DSA", file_obj, password)
                                                   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 337, in _read_private_key
                  data = self._read_private_key_openssh(lines[start:end], password)
                                                                                     File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/pkey.py", line 439, in _read_private_key_openssh
                                                            "private key file is encrypted"
                                                                                           paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted



使用道具 举报 只看该作者 回复
发表于 2025-1-15 09:29:33 | 显示全部楼层
您好,可以到终端右上角添加你的账号信息,然后点击账号信息登录
企业微信截图_17369045265480.png
使用道具 举报 回复 支持 反对
发表于 2025-1-15 22:10:07 | 显示全部楼层
堡塔运维南一 发表于 2025-1-15 09:29
您好,可以到终端右上角添加你的账号信息,然后点击账号信息登录

已经添加了的,但是打开终端的时候还是提示这个错误,在这个服务器列表里点的话,经常卡住或者报”协议头响应超时,与目标服务器之间的网络质量太糟糕:Error reading SSH protocol banner“,只有多点几个才偶尔能加载出来,修复和重装都没办法解决
使用道具 举报 回复 支持 反对
发表于 2025-1-15 22:11:53 | 显示全部楼层
本帖最后由 夜寐纵欲 于 2025-1-15 22:17 编辑

3.jpg 2.jpg 1.jpg 以上3图分别是卡住、报”协议头响应超时“,报python错误
该服务器使用的是私钥登录,且私钥已加密
使用道具 举报 回复 支持 反对
发表于 2025-1-17 10:37:37 | 显示全部楼层
无人处理,已更改安装为稳定版后恢复正常
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表