Some gardeners report success with companion-planting nasturtium (Tropaeolum spp.) or tansy (Tanacetum vulgare) next to squash or similar plants that are vulnerable to squash bugs. In general, companion planting is not a reliable deterrent technique, but it never hurts to try.