Prevent endless loop when SSH authentication fails