I am using Apache VFS 2.1 with JSch 0.1.54 (latest versions today) to upload files using SFTP.
Apache VFS 2.1
JSch 0.1.54
The system throws \"End of IO Stream Rea
The JSch Session inherits settings from its JSch instance. And all JSch instances actually share the same global/static hashtable with settings.
Session
JSch
So just call static JSch.setConfig before SftpClientFactory.createConnection:
SftpClientFactory.createConnection
JSch.setConfig("kex", "diffie-hellman-group1-sha1");