The gatekeeper opens for him
"The gatekeeper opens the gate for the shepherd"
The gatekeeper
This is a hired man who watches the gate of the sheep pen at night while the shepherd is away.
The sheep hear his voice
"The sheep hear the shepherd's voice"