Jsch error - failed to send channel request

£可爱£侵袭症+ 提交于 2019-11-29 06:40:41

Check if SFTP server is started and running.

I had encountered the same issue - I was not able to open SFTP channel to my server, but I could connect with WinSCP. It took me some time to notice that WinSCP would fallback to SCP hence confusing me. Starting the server solved this issue.

Check Subsystem sftp /usr/lib/openssh/sftp-server in /etc/ssh/sshd_config

user2451964

In /etc/ssh/sshd_config I changed:

Subsystem sftp /usr/lib/openssh/sftp-server 

to:

Subsystem sftp internal-sftp 

It helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!