[GH-ISSUE #3630] 在某些Linux系统下sftp异常 #2496

Closed
opened 2026-02-27 00:53:13 +03:00 by kerem · 2 comments
Owner

Originally created by @nikelius on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/electerm/electerm/issues/3630

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.40.16-win-x64

Platform detail (平台详情)

windows 11 (版本:23H2,内部版本:22631.4317)

What steps will reproduce the bug?(重新问题的详细步骤)

在Windows环境中使用 electerm 连 CentOS-7.9 服务器——ssh成功,但sftp异常。
服务器版本:Linux pm-119 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
异常信息:Packet length 589325167 exceeds max length of 262144
Error: Packet length 589325167 exceeds max length of 262144
at http://127.0.0.1:30975/js/electerm-1.40.16.js:101:16154
at Object.resolve (http://127.0.0.1:30975/js/electerm-1.40.16.js:61:5472)
at Worker._x (http://127.0.0.1:30975/js/electerm-1.40.16.js:61:6364)
补充:electerm 是从windows的mircrosoft store中安装的。

What should have happened?(期望的结果)

能正常使用sftp功能。

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

在SecureCRT中能正常使用ssh和sftp功能。

Additional information(其他任何相关信息)

补充:错误信息截图如下:
image

No response

Originally created by @nikelius on GitHub (Oct 12, 2024). Original GitHub issue: https://github.com/electerm/electerm/issues/3630 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.40.16-win-x64 ### Platform detail (平台详情) windows 11 (版本:23H2,内部版本:22631.4317) ### What steps will reproduce the bug?(重新问题的详细步骤) 在Windows环境中使用 electerm 连 CentOS-7.9 服务器——ssh成功,但sftp异常。 服务器版本:Linux pm-119 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 异常信息:Packet length 589325167 exceeds max length of 262144 Error: Packet length 589325167 exceeds max length of 262144 at http://127.0.0.1:30975/js/electerm-1.40.16.js:101:16154 at Object.resolve (http://127.0.0.1:30975/js/electerm-1.40.16.js:61:5472) at Worker._x (http://127.0.0.1:30975/js/electerm-1.40.16.js:61:6364) 补充:electerm 是从windows的mircrosoft store中安装的。 ### What should have happened?(期望的结果) 能正常使用sftp功能。 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) 在SecureCRT中能正常使用ssh和sftp功能。 ### Additional information(其他任何相关信息) 补充:错误信息截图如下: ![image](https://github.com/user-attachments/assets/e33d4c38-3d79-4545-bad3-b5cf4fc22958) _No response_
kerem closed this issue 2026-02-27 00:53:13 +03:00
Author
Owner

@zxdong262 commented on GitHub (Oct 14, 2024):

可以参考下这个 https://github.com/electerm/electerm/issues/3413#issuecomment-2104459513

<!-- gh-comment-id:2411051603 --> @zxdong262 commented on GitHub (Oct 14, 2024): 可以参考下这个 https://github.com/electerm/electerm/issues/3413#issuecomment-2104459513
Author
Owner

@nikelius commented on GitHub (Oct 15, 2024):

修改目标主机的.bashrc文件,删除所有涉及控制台输出的命令,再使用sftp就正常了。

<!-- gh-comment-id:2413002897 --> @nikelius commented on GitHub (Oct 15, 2024): 修改目标主机的.bashrc文件,删除所有涉及控制台输出的命令,再使用sftp就正常了。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2496
No description provided.