Smells that discourage squirrels include pepper, cayenne, and coffee grounds. Which is why they also make fantastic natural deterrents. However, this is true of most animals.