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

【待反馈】终端无法链接

发表在 Linux面板2020-11-12 17:28 [复制链接] 3 2401

本来可以连上终端的,但是发现无操作5s左右就会断开链接,就找资料解决。


然后执行了
  1. pip install paramiko==2.0.2
  2. bt reload
复制代码
1.png
或者
  1. ssh-keygen -q -t rsa -P "" -f /root/.ssh/id_rsa && cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys
复制代码
都是没有反映的。

求正确的解决姿势
使用道具 举报 只看该作者 回复
发表于 2020-11-12 17:59:19 | 显示全部楼层
补充: 1.png
使用道具 举报 回复 支持 反对
发表于 2020-11-12 18:15:14 | 显示全部楼层

ssh内执行bt 22看看具体面板错误日志
使用道具 举报 回复 支持 反对
发表于 2020-11-12 18:21:33 | 显示全部楼层
谢花郎 发表于 2020-11-12 18:15
ssh内执行bt 22看看具体面板错误日志

我贴给你吧
  1. 2020-11-12 18:05:55,320] ERROR in app: Exception on /xterm [POST]
  2. Traceback (most recent call last):
  3.   File "class/flask_sockets.py", line 30, in __call__
  4.     handler, values = adapter.match()
  5.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
  6.     raise NotFound()
  7. 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.

  8. During handling of the above exception, another exception occurred:

  9. Traceback (most recent call last):
  10.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
  11.     response = self.full_dispatch_request()
  12.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
  13.     rv = self.handle_user_exception(e)
  14.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
  15.     reraise(exc_type, exc_value, tb)
  16.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
  17.     raise value
  18.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
  19.     rv = self.dispatch_request()
  20.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
  21.     return self.view_functions[rule.endpoint](**req.view_args)
  22.   File "/www/server/panel/BTPanel/__init__.py", line 258, in xterm
  23.     return publicObject(ssh_host_admin,defs,None)
  24.   File "/www/server/panel/BTPanel/__init__.py", line 1469, in publicObject
  25.     return run_exec().run(toObject,defs,get)
  26.   File "/www/server/panel/BTPanel/__init__.py", line 1418, in run
  27.     result = eval(fun)
  28.   File "<string>", line 1, in <module>
  29.   File "class/ssh_terminal.py", line 822, in create_host
  30.     result = self.set_attr(host_info)
  31.   File "class/ssh_terminal.py", line 600, in set_attr
  32.     result = self.connect()
  33.   File "class/ssh_terminal.py", line 89, in connect
  34.     import paramiko
  35.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/__init__.py", line 30, in <module>
  36.     from paramiko.transport import SecurityOptions, Transport
  37.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/transport.py", line 65, in <module>
  38.     from paramiko.sftp_client import SFTPClient
  39.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/sftp_client.py", line 41, in <module>
  40.     from paramiko.sftp_file import SFTPFile
  41.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/paramiko/sftp_file.py", line 66
  42.     self._close(async=True)
  43.                     ^
  44. SyntaxError: invalid syntax
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术分析

工作时间:09:00至18:30

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