An apparatus for producing a connection between an electric or electronic appliance and a cable is described and which includes magnetic elements which produce both a holding force, and at the same time, provide approximate guidance, and exact centering so as to reliably avoid electric shorts and insure correct contact-making, between the electric or electronic appliance and the cable.