mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #753] 会话连接前的脚本不运行 #617
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#617
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wuq5789 on GitHub (Nov 5, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/753
Originally assigned to: @VShawn on GitHub.
Describe the bug
会话连接前的脚本不运行
To Reproduce
Steps to reproduce the behavior:
1.我要一SSH会话中添加“会话连接前脚本”,内容为ping 127.0.0.1
2. 在1Remonte添加页面测试是正常的。在任务管理器中可以看到ping这个进程
3.但在保存后,,我打开这个SSH会话,查看任务管理器中并没有ping进程在运行
Expected behavior
会话运行过程中,任务管理器并无相关脚本的进程。
Screenshots

Desktop (please complete the following information):
Additional context
Add any other context about the problem here.4. 同时我另一个脚本,内容为
5. ssh.exe -iC:\Users\ROY_xin\OneDrive\PROJECTS\cloudSDP\ssh_cloudSDP -Nf -L 31022:Bhost:22 root@Ahost
6、同样测试正常,但在保存并运行,查看任务管理器中并没有SSH进程在运行
@VShawn commented on GitHub (Nov 6, 2024):
https://github.com/user-attachments/assets/0db1a5f4-419a-461b-be6a-83d4bf32e75a
经测试运行正常。
@VShawn commented on GitHub (Nov 6, 2024):
发现问题了,是相比Win10,Win11中系统的CMD被改成了多标签的终端,于是脚本被执行在终端上,而因此没有被显示出来,实际上脚本是被执行了的。
如果把 IP 改为一个 PING 不通的 IP,就会弹出脚本执行失败的提示。
@VShawn commented on GitHub (Nov 7, 2024):
I think I fixed it
https://github.com/user-attachments/assets/679de829-9cd1-43a9-84fd-0e23668a3f44