The invention relates to a connecting device (3) comprising a first connecting element (1, 2) and a second connecting element (1, 2), wherein - the two connecting elements (1, 2) are shaped so that they engage in a form-fitting manner in a closed position (S) and can be separated from one another by displacement relative to one another along an opening direction (O), wherein relative movements of the connecting elements (1, 2) to one another from the closed position (S) in directions other than the opening direction (O) are blocked by the form-fitting of the connecting elements (1, 2), - the first connecting element (1, 2) has a locking
magnet (6) which is movable back and forth between a predetermined unlocking position and a predetermined locking position along a locking direction (R), and is arranged such that its
magnetic field direction is oriented transversely to the locking direction (R), - one of the connecting elements (1, 2) has a holding element (7) which is positioned such that, at least in the closed position (S), it exerts a force on the locking
magnet (6) so that it tends towards the locking position, - the two connecting elements (1, 2) are shaped so that the locking
magnet (6) blocks a relative movement of the connecting elements (1, 2) to each other from the closed position (S) along the opening direction (O) in the locking position and does not block it in the unlocking position, - one of the connecting elements (1, 2) has on its outer side a key area (B) above the unlocking position, which is shaped so that a magnet with an
adhesive force of less than 1000 g and a
magnetic field aligned coaxially and parallel to the
magnetic field of the locking magnet (6) in the unlocking position can pull the locking magnet into the unlocking position and hold it there. Furthermore, the invention comprises a connection
system.