First click on "Edit course"
After that you can see a box with all your Copecart products in the bottom right corner:
(If a product should be missing here, please contact the support and mention the product ID and name)
Now simply select the product(s) you want to link to the course.
Done!
If someone buys your Copecart product, they will automatically get access to the linked course.