mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #262] Could not open a SFTP by private key. #3114
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#3114
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 @wolvth on GitHub (Jun 20, 2022).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/262
Originally assigned to: @VShawn on GitHub.
win11,store版本,桌面版本
ssh导入openssh格式的key登录不了。
转换成ppk可以登录,但是sftp依旧验证不通过
@VShawn commented on GitHub (Jun 21, 2022):
@wolvth commented on GitHub (Jun 21, 2022):
直接打开,SSH选择同时打开都不行。调用winscp也验证失败。独立使用winscp没问题。
@VShawn commented on GitHub (Jun 23, 2022):
自带的 SFTP 的 PPK 登录我得再研究一下。
WinSCP 无法登录是因为我没有写私钥的传参,前文说过了因为我不用私钥登录所以没写
就是这个,我现在写的是传账号和密码
参考 https://winscp.net/eng/docs/commandline#parameters
你可以试着把命令行参数改成:
@VShawn commented on GitHub (Jun 24, 2022):
sftp://%PRM_USERNAME%@%PRM_HOSTNAME%:%PRM_PORT% /privatekey=%PRM_SSH_PRIVATE_KEY_PATH%参数测试通过
@VShawn commented on GitHub (Jun 24, 2022):
问题已修复。
经查内置的 SFTP 客户端基于 SSH.NET 开发,它仅支持 OpenSSH key,所以致使本软件的 SFTP via privacy key 失效。先问题修复后,软件内置 SSH 仅支持 PUTTY key,内置的 SFTP 仅支持 OpenSSH key,体验相当奇怪。经测试 发现,WinSCP 支持 Putty OpenSSH 两种格式的私钥,因此推荐使用 WinSCP 作为 SFTP 客户端。