Ammonia or cider vinegar-soaked cloth. Hang a cloth soaked ammonia or cider vinegar over a trash can or on a tree to deter bears. Lysol and PineSol smells also repel bears. Bear Pepper Spray. Bear spray is good for defending yourself from an attack, but make sure you know which way the wind is gusting, or the nozzle is pointing.