Jsch error - failed to send channel request
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a SFTP remote server using JSCH library version 0.1.49. Every time I run the program I receive the following error : Initializing... Connection to SFTP server is successfully com.jcraft.jsch.JSchException: Unable to connect to SFTP server.com.jcraft.jsch.JSchException: failed to send channel request at shell.MainClass.JschConnect(MainClass.java:95) at shell.MainClass.main(MainClass.java:30) line 30 is : sftpChannel.connect() from the code below : System.out.println("Initializing..."); JSch jsch = new JSch(); Session