Following error occurs whe we trigger gerrit patchset

com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName=“server_host_key” jschProposal=“ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256” serverProposal=“ssh-rsa”

Adjusting JSch Dependency plugins error can be resolved

Hello desainiravp,
How did you resolve this error? I have jenkins-2.452.3 with OpenJDK-21.0.3 on RedHat-9.4; password less SSH connection working just fine from command line but from Jenkins GUI it is throwing the same error you mentioned here. And my client system is on RedHat-6.10.
What & where the changes helped you to resolve the issue?
Thank you.