For scheduled commercial aircraft you will generally find:
If enough aircraft are coming and going from a particular airport, the airline may keep a line maintenance operation running there that can handle short-term maintenance and troubleshooting, or special inspection operations.
If not, and the airport has a AMO (approved maintenance organization) on site, the airline may contract with the AMO for line maintenance services, troubleshooting or special inspections.
If that's not the case, the airline will simply fly mechanics to the airport when airplanes are AOG. This is typical when airplanes have problems that prevent dispatch at small remote airports.
So if an airplane needs a hard landing inspection at a remote "outstation", it'll be done by local contract staff if an AMO qualified to do the inspection is there, or barring that, airline staff flown out to the site.