Thanks to visit codestin.com
Credit goes to github.com

Skip to content

X25519 unsupported public key length [46] Error message #957

@Atharva-2157

Description

@Atharva-2157

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions