[GH-ISSUE #2490] windows 下 ssh config 登录Linux 后使用不了 rz 命令 #1604

Open
opened 2026-02-27 00:04:10 +03:00 by kerem · 2 comments
Owner

Originally created by @zphiliam on GitHub (May 7, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2490

Electerm Version(Electerm版本)

v1.21.48

Platform detail (平台详情)

Microsoft Windows NT 10.0.18362.0 x64

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

在windows 下通过 new bookmark 添加的账号信息登录的服务器 是可以用 rz 的,能弹出 upload 的按钮上传文件。

但是!!在默认的 命令行下直接用 ssh 登录的用rz 命令会卡死,不会出现上传界面:

PS C:\Users\zhangtao1> ssh cvm 
Last login: Sat May  7 16:09:47 2022 from 59.36.211.201
[root@VM-16-2-centos ~]# 

image

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

期望出现和 bookmark 登录一样的界面:
image

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

No response

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

No response

Originally created by @zphiliam on GitHub (May 7, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2490 ### Electerm Version(Electerm版本) v1.21.48 ### Platform detail (平台详情) Microsoft Windows NT 10.0.18362.0 x64 ### What steps will reproduce the bug?(重新问题的详细步骤) 在windows 下通过 new bookmark 添加的账号信息登录的服务器 是可以用 rz 的,能弹出 upload 的按钮上传文件。 ------ 但是!!在默认的 命令行下直接用 ssh 登录的用rz 命令会卡死,不会出现上传界面: ``` PS C:\Users\zhangtao1> ssh cvm Last login: Sat May 7 16:09:47 2022 from 59.36.211.201 [root@VM-16-2-centos ~]# ``` ![image](https://user-images.githubusercontent.com/10768868/167252099-6ebec09b-7a05-4249-9da1-d62d3e3d0153.png) ### What should have happened?(期望的结果) 期望出现和 bookmark 登录一样的界面: ![image](https://user-images.githubusercontent.com/10768868/167252229-18632b76-c843-46c4-ae57-d888832468c0.png) ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
Author
Owner

@lonnywong commented on GitHub (Jul 2, 2022):

trzsz ( trz / tsz ) 开始支持这种用法了,在 dev 分支。不过我计划写完“支持目录”的功能,再发布,到时再集成到 electerm 中。

@zxdong262 判断是否为在 Windows 平台,并且是本地的 cmd、PowerShell 和 git bash 等,是不是可以这样做?

github.com/electerm/electerm@d384a1cf39/src/client/components/terminal/index.jsx (L576-L579)

isWin && !this.isRemote()
<!-- gh-comment-id:1172830881 --> @lonnywong commented on GitHub (Jul 2, 2022): [trzsz](https://github.com/trzsz/trzsz.js) ( trz / tsz ) 开始支持这种用法了,在 dev 分支。不过我计划写完“支持目录”的功能,再发布,到时再集成到 electerm 中。 @zxdong262 判断是否为在 Windows 平台,并且是本地的 cmd、PowerShell 和 git bash 等,是不是可以这样做? https://github.com/electerm/electerm/blob/d384a1cf39b55ef77ba28de8303277d8940ea81c/src/client/components/terminal/index.jsx#L576-L579 ```js isWin && !this.isRemote() ```
Author
Owner

@zxdong262 commented on GitHub (Jul 3, 2022):

<!-- gh-comment-id:1173190184 --> @zxdong262 commented on GitHub (Jul 3, 2022): > 对
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#1604
No description provided.