I am trying to connect to sftp server using SSHClient.
SSHClient sshClient = new SSHClient();
sshClient.addHostKeyVerifier(new PromiscuousVerifier());
// Connect and authenticate
sshClient.connect(sftpHost, sftpPort);
sshClient.authPassword(sftpUser, sftpPass);
But at connect method I am getting this error - X25519 unsupported public key length [46]
I tried to find the solution online but not found any can anyone help me to solve this.