I propose a definition of left/right connection along a strong homotopy Lie–Rinehart algebra. This allows me to generalise simultaneously representations up to homotopy of Lie algebroids and actions ofL∞algebras on graded manifolds. I also discuss the Schouten-Nijenhuis calculus associated to strong homotopy Lie–Rinehart connections.