In Java we are using ganymed-ssh2-build210.jar for connecting to the server via ssh. I need to restrict the weaker algorithm " diffie-hellman-group1-sha1 " specifically.
Is there any customizable settings in ganymed-ssh2-build210.jar that allows to restrict this ?
Is there any java.security setting available for restricting the same ?
You want to change allowed ciphers on the server rather than in your client, otherwise anyone can bypass this easily.
Check answer: https://unix.stackexchange.com/questions/333728/ssh-how-to-disable-weak-ciphers