No, you don't need to be mean or harsh, but assertive and confident. Wear boots and long pants and don't put up with nonsense. You can be firm, but gentle, but they've got to know that attacking you, smothering you, pecking you, etc, is simply not appropriate and is unacceptable. Just take your boot and gently, gently push them back or to the side, You could even take a corn broom with you so you can sort of softly sweep them backward or to the side. That's not something they've seen before and I doubt they'd be overly confident with you handling a broom. Remember, meanness has no place in this. Yes, a chicken understands meanness, but I won't practice it, not with hens. I'm either this benign being or a rooster to be respected, however they wish to perceive me is just fine. I like having them come close to me and cluck talk. That's nice. Not all do, but most do. Others just sort of watch, while others take a step backward, not in fear, but in respect and caution. That's all fine. But pecking me?
No. That isn't happening.