我已禁用主机密钥检查 ssh 但它会记录非法密钥大小警告
SSHClient ssh = new SSHClient();
ssh.addHostKeyVerifier(new HostKeyVerifier() {
@Override
public boolean verify(String arg0, int arg1, PublicKey arg2) {
return true;
}});
ssh.connect(hostIP, CommonProperties.SSH_PORT);
ssh.authPassword(serverUserName, serverPassword);