mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #673] special characters incorrectly passed to exe(KiTTY, WinSCP) #3468
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#3468
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 @wyx176 on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/673
Originally assigned to: @VShawn on GitHub.
初步排查了下 是好像是密码问题这种密码就连接不了
2020aA+66
多次测试是+号导致的,通过cmd启动时候需要把+号转义成%2B这个就能连接了
原始错误:sftp://root:2020aA+66@127.0.0.1:22/
正确示例:sftp://root:2020aA%2B66@127.0.0.1:22/
但是转义之后ssh就提示密码错误了,sftp不转义不能连接.....
参考URL特殊字符发现的
1、用的WinScp和XFTP都这样,密码像没有自动带到SFTP客户端。
2、协议配置如图
3、看了你下代码,我这样改了后就可以正常debug运行了,但是生成的Shawn.Utils.pdb文件复制过去后用不了,提示主机"root"不存在。C#玩不转.....

@VShawn commented on GitHub (Jun 7, 2024):
你改这里是不对的,我待会改一个版本给你测试一下
并且从你的测试结果推论,这些字符应当都需要转义推论是错误的,WinSCP 使用密码
123456!@#$%^无需转义即可登陆成功。于是找到资料:https://winscp.net/eng/docs/session_url#special
不确定该转义是否适用于 XFTP 等工具
@VShawn commented on GitHub (Jun 7, 2024):
@wyx176 劳烦下载最新的包,我测试密码中带空格的依然不行,其他情况都连接ok
@wyx176 commented on GitHub (Jun 8, 2024):
测试了下 WinScp和Xftp都可以了 太强了