Connector, in particular a push-pull connector, for connection to a connector socket, comprising: a first housing element designed to enclose a plug connected to a cable at least partially along a plug-in direction of the connector in the connector socket; at least one connector-side locking element arranged on the first housing element for locking the connector to the connector socket, wherein the at least one connector-side locking element is designed to lock to a connector socket-side locking element in a locked state of the connector to the connector socket; and a second housing element, which at least partially encloses the first housing element and the connector-side locking element, wherein the second housing element is movable along the plug-in direction with respect to the first housing element; and wherein the connector is releasable from the connector socket by moving the second housing element opposite to the plug-in direction to an unlocking position, wherein the at least one connector-side locking element has a fixing portion and a locking portion connected to the fastening portion, wherein the at least one connector-side locking element can be fixed to the first housing element by means of the fixing portion, wherein the locking portion extends in the direction of the plug-in direction and is arranged at least in part between the fixing portion and the second housing element, wherein the locking portion has, at an end located in the plug-in direction, a contacting surface angled relative to the plug-in direction, characterized in that the contacting surface abuts at least in part against a supporting portion formed by a through-opening provided in the second housing element, wherein the at least one connector-side locking element has at least one outwardly directed contacting element designed to contact the inner side of the second housing element, and wherein the at least one connector-side locking element and the first housing element are designed to provide an electrically conductive connection between the second housing element and a shield of the cable, which is enclosed at least in part by the first housing element. a first housing element designed to enclose a plug connected to a cable at least partially along a plug-in direction of the connector in the connector socket; at least one connector-side locking element arranged on the first housing element for locking the connector to the connector socket, wherein the at least one connector-side locking element is designed to lock to a connector socket-side locking element in a locked state of the connector to the connector socket; and a second housing element, which at least partially encloses the first housing element and the connector-side locking element, wherein the second housing element is movable along the plug-in direction with respect to the first housing element; and wherein the connector is releasable from the connector socket by moving the second housing element opposite to the plug-in direction to an unlocking position, wherein the at least one connector-side locking element has a fixing portion and a locking portion connected to the fastening portion, wherein the at least one connector-side locking element can be fixed to the first housing element by means of the fixing portion, wherein the locking portion extends in the direction of the plug-in direction and is arranged at least in part between the fixing portion and the second housing element, wherein the locking portion has, at an end located in the plug-in direction, a contacting surface angled relative to the plug-in direction, characterized in that the contacting surface abuts at least in part against a supporting portion formed by a through-opening provided in the second housing element, wherein the at least one connector-side locking element has at least one outwardly directed contacting element designed to contact the inner side of the second housing element, and wherein the at least one connector-side locking element and the first housing element are designed to provide an electrically conductive connection between the second housing element and a shield of the cable, which is enclosed at least in part by the first housing element.