steelbrain / node-ssh

SSH2 with Promises
MIT License
947 stars 94 forks source link

Support SFTP on Windows SSH server? #440

Open TerryChan opened 2 years ago

TerryChan commented 2 years ago

when I use node-ssh to connect to a Windows ssh server, and perform SFTP operations, it failed to reqeust SFTP with errors below: image Looks like the Windows dowsn't support SFTP protocol. But I checked the sshd_config on the windows server, it has sftp-server subsystem: image I can perform SFTP operations on a Linux ssh server successfully. And I can execute command on the windows ssh server. Does anyone know why it failed? And how to performa sftp on a windows ssh server?

JKSan commented 2 years ago

image The path of the file is incorrect, try setting to absolute path.