winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
4.78k stars 250 forks source link

sshfs -o ssh_command="" don't recognize windows path correctly #394

Open abc19899 opened 1 year ago

abc19899 commented 1 year ago

first time

c:\Program Files\SSHFS-Win>"C:\Program Files\SSHFS-Win\bin\sshfs.exe" -o ssh_command="C:\Program Files\SSHFS-Win\bin\ssh.exe" root@9.134.129.221: Z -p 36000 -f -d
SSHFS version 3.5.2
executing <C:Program> <FilesSSHFS-Winbinssh.exe> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=36000> <-2> <root@9.134.129.221> <-s> <sftp>
failed to execute 'C:Program': No such file or directory
read: Connection reset by peer

it seams that ssh_command is splitted by blank between Program and Files

second time I try to install sshfs in C:\SSHFS-win and then


c:\Program Files\SSHFS-Win>"C:\SSHFS-Win\bin\sshfs.exe" -o ssh_command="C:\SSHFS-Win\bin\ssh.exe" root@9.134.129.221: Z -p 36000 -f -d
SSHFS version 3.5.2
executing <C:SSHFS-Winbinssh.exe> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=36000> <-2> <root@9.134.129.221> <-s> <sftp>
failed to execute 'C:SSHFS-Winbinssh.exe': No such file or directory
read: Software caused connection abort

it miss the \ in path

GKSONG commented 4 months ago

Have you tried this? ( 3 backslash) -- unfortunately not displayed in here C: \\ SSHFS-Win \\ bin \\ ssh.exe