Fix Windows compatibility in SSH tunnel (ssh path + askpass) - #3
Open
westwooder wants to merge 1 commit into
Open
Fix Windows compatibility in SSH tunnel (ssh path + askpass)#3westwooder wants to merge 1 commit into
westwooder wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
插件在 Windows 上无法建立 SSH 隧道,导致视频生成流程中断。涉及两处:
openSshTunnel()默认sshPath = "/usr/bin/ssh",Windows 上不存在该路径:.sh:Windows OpenSSH 无法直接执行#!/bin/sh脚本作为 askpass:修改
sshPath默认值按平台选择:Windows 用ssh.exe(经 PATH 解析到系统自带 OpenSSH),其它平台维持/usr/bin/ssh。askpass.cmd(@echo off+echo %MINIMAX_H3_SSH_PASSWORD%),POSIX 仍生成askpass.sh。askpassDir仍在外层统一创建,清理逻辑不变。验证
.cmd方案用公开密码认证服务器test.rebex.net验证:SSH_ASKPASS正常调用(错误密码得到Permission denied (password)而非 error 193)。