Use Strong Odors Scents like white pepper, black pepper, and garlic are naturally unpleasant to a squirrel. The same goes for sweet smells such as peppermint. Try spraying your plants and flowers with water and then sprinkling on pepper or peppermint oil to deter squirrels.