Relative Content

Tag Archive for javaspring-bootsftpjsch

SSH_MSG_DISCONNECT: 1 ssh disconnect host not allowed to connect

I’m upgrading my SFTP client library from com.jcraft.jsch 0.1.55 to com.github.mwiede.jsch 0.2.17 to utilize OpenSSH keys.
My previous code using com.jcraft.jsch 0.1.55 was working fine by providing the “RSA PRIVATE KEY”. (I understand that SFTP servers do not share their private key). But I was able to connect like that. while it’s now failing.