WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

SFTP session failed to allocate. sh: /usr/libexec/sftp-server: not found

Open ydong08 opened this issue 1 year ago • 2 comments

OS: Windows 10 Pro 22H2 WindTerm: 2.6.0 pre4

I have created a SSH connect, details as follows: ssh_config

this SSH works very well sometimes , however, often reports a wired error after a successful connecting: SFTP session failed to allocate. sh: /usr/libexec/sftp-server: not found ssh

I think there may be a issue somewhere.

ydong08 avatar Dec 01 '23 09:12 ydong08

This should not be a bug. I'm guessing you're connecting to devices like routers. These devices typically do not offer Sftp services, so please download WindTerm_2.6.0_Prerelease_5 you need to uncheck the Sftp slip button as shown in the figure below, so that WindTerm will no longer request Sftp when connecting to the server.

image

kingToolbox avatar Dec 02 '23 11:12 kingToolbox

The SSH of Pre5 works well on my device now, thanks very much!

ydong08 avatar Dec 04 '23 00:12 ydong08

This should not be a bug. I'm guessing you're connecting to devices like routers. These devices typically do not offer Sftp services, so please download WindTerm_2.6.0_Prerelease_5 you need to uncheck the Sftp slip button as shown in the figure below, so that WindTerm will no longer request Sftp when connecting to the server.

image

I also encountered this problem. I was connecting to a router and it has a sftp server. If I used mobaxterm, the sftp server works fine.

DL53 avatar Mar 02 '24 12:03 DL53

This should not be a bug. I'm guessing you're connecting to devices like routers. These devices typically do not offer Sftp services, so please download WindTerm_2.6.0_Prerelease_5 you need to uncheck the Sftp slip button as shown in the figure below, so that WindTerm will no longer request Sftp when connecting to the server.

I also encountered this problem. I was connecting to a router and it has a sftp server. If I used mobaxterm, the sftp server works fine.

openssh 9.0之后的版本,scp命令默认使用SFTP协义来传输文件,而基于openwrt的系统目前是不支持的 解决办法 使用“-O”参数使用得scp的变回传统传输行为 作者:漳木容 https://www.bilibili.com/read/cv18475440/ 出处:bilibili https://www.bilibili.com/read/cv18475440/

Just it seems there is no way to set this "-O" option in WindTerm. Hope it could be resolved in next revision.

zhrtc avatar Mar 13 '24 06:03 zhrtc