Short answer
HubSpot's KB: connect either a Salesforce production org or a sandbox. During install, select the option confirming a sandbox connection. If production is already connected, the KB has separate steps.
1. In HubSpot
The relevant screen in my demo portal.

2. Worth knowing
Test mappings in the sandbox before production.