A Canadian man allegedly posed as an airline pilot and as a flight attendant and managed to get hundreds of free flights over four years, officials said.