To keep him away, spray plants with pungent white vinegar or apple bitter. Or plant marigolds between vegetable rows, which repel dogs and other backyard pests, such as Mexican bean beetles, aphids, squash bugs, and whiteflies. However, don't apply rabbit or deer repellents that contain coyote urine.