// Notify user host key changed (ask if requested) and throw exception
// if user doesn't accept the new key
if( _userinfo != null ) {
if( "ask".equals(shkc) ) {
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,