Kissing the gunner's daughter
From wipipedia.org

Kissing the gunner's daughter is a punishment formerly used in the British navy. The victim was tied bending over a cannon (the "gunner's daughter") and flogged, usually with a cat o' nine tails.