2 Sam 5:2, 2 Sam 7:8, Ps 118:19-20, Jn 14:6, Eph 2:18

In the Old Testament, the role of a king was compared to that of a shepherd. (2 Sam 5:2, 2 Sam 7:8)

2 Sam 5:2 Also in time past, when Saul was king over us, thou wast he that leddest out and broughtest in Israel: and the Lord said to thee, Thou shalt feed my people Israel, and thou shalt be a captain over Israel.

2 Sam 7:8 Now therefore so shalt thou say unto my servant David, Thus saith the Lord of hosts, I took thee from the sheepcote, from following the sheep, to be ruler over my people, over Israel:

In the Old Testament, it was foretold that there would be a gate of Jehovah through which the righteous would enter. (Ps 118:19-20)

Ps 118:19 Open to me the gates of righteousness: I will go into them, and I will praise the Lord: 20 This gate of the Lord, into which the righteous shall enter.

Jesus is the shepherd who rules over us and is the way to meet God. That is, Jesus is the Christ. (Jn 10:7-10, Jn 14:6, Eph 2:18)

Jn 10:7 Then said Jesus unto them again, Verily, verily, I say unto you, I am the door of the sheep. 8 All that ever came before me are thieves and robbers: but the sheep did not hear them. 9 I am the door: by me if any man enter in, he shall be saved, and shall go in and out, and find pasture. 10 The thief cometh not, but for to steal, and to kill, and to destroy: I am come that they might have life, and that they might have it more abundantly.

Jn 14:6 Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me.

Eph 2:18 For through him we both have access by one Spirit unto the Father.