}
catch ( JSchException e )
{
if ( e.getMessage().startsWith( "UnknownHostKey:" ) || e.getMessage().startsWith( "reject HostKey:" ) )
{
throw new UnknownHostException( host, e );
}
else if ( e.getMessage().indexOf( "HostKey has been changed" ) >= 0 )
{
throw new KnownHostChangedException( host, e );
}