Squirrels use their strong sense of smell to search for food and shelter. Some natural scents may deter squirrels, including vinegar, peppermint oil, coffee grounds, cinnamon, garlic and rosemary. Squirrels don't like spicy odours. The capsaicin in hot peppers irritates them.