if( !_userinfo.promptYesNo(String.format(MessageConstants.PROMPT_REPLACE_KEY,
kex._hostKeyType.DISPLAY_NAME, Util.getFingerPrint(kex.K_S), file)) ) {
throw new JSchException("HostKey has changed (StrictHostKeyChecking:ask): "+chost);
}
} else { // shkc.equals("yes")
_userinfo.showMessage(String.format(MessageConstants.INVALID_SERVER_HOST,
kex._hostKeyType.DISPLAY_NAME, Util.getFingerPrint(kex.K_S), file));
throw new JSchException("HostKey has changed (StrictHostKeyChecking:yes): "+chost);
}
}