Is by giving faith in Christ to God, who will then SAVE YOU... by cleansing all your sin in the Blood of Jesus, and then He'll give you the new Birth, that joins your spirit to His, as "in Christ" "one with God" = Born Again.
That is how you "relationship with Jesus".
There is NO OTHER WAY... = John 14:6
People who try to relationship with God and Christ by law and commandments, will be told...>"Depart from ME, i never knew you".
Jesus said "you must be born again".
The Hebrew word "yada" refers to intimate relational knowledge gained through experience, such as in Genesis 4:1, Adam knew (yada) Eve, she conceived, and gave birth to Cain. The Mosaic Covenant is often described as being a marriage relationship between God and Israel, so the purpose of the Mosaic Law is to teach us how to have that relationship through having the experience of testifying about His nature. According to Genesis 18:19, God's way is the way to testify about aspects of His nature such as by doing righteousness and justice, in Exodus 33:13, Moses wanted God to be gracious to him by teaching him to walk in His way that he might know (yada) Him and Israel too, and in 1 Kings 2:1-3, God taught how to walk in His way through the Mosaic Law. In Jeremiah 9:3 and 9:6 they did not know (yada) God and refused to know Him because in 9:13, they had forsaken the Mosaic Law, while in 9:24, those who know God know that He delights in practicing steadfast love, justice, and righteousness in all of the earth, so delighting in testifying about those and other aspects of God's nature by obeying His law is the way to know Him, and the way to know Jesus, who is the exact image of God's nature (Hebrews 1:3). In 1 John 2:4, those who say that they know Jesus, but don't obey His commands are liars, and in 1 John 3:4-6, those who continue to practice sin in transgression of the Mosaic Law have neither seen nor known him. In Matthew 7:21-23, Jesus did not say that he would tell those who try to have a relationship with God and him by doing His will in obedience to His law to depart from him because he never knew them, but rather he said that only those who do the will of the Father will enter the Kingdom of Heaven and that he would tell those who are workers of lawlessness to depart from him because he never knew them.
So the goal of the law is to have the experience of knowing God and Jesus through testifying about His nature, which is eternal life (John 17:3), which is also why Jesus said that the way to enter eternal life is by obeying God's law (Matthew 19:17, Luke 10:25-28). There are also a number of verses where Jesus said that the way to enter eternal life is by believing in Him, which is straightforwardly because God's law is His instructions for how to believe in Jesus through testifying about His nature. For example, when we do good works in obedience to God's law we are testifying about God's goodness, which is why our good works bring glory to him (Matthew 5:16), which is also expressing the belief in God's goodness, and it is by this faith that we are saved. Furthermore, becoming born again means becoming someone who testifies about God's nature in obedience to His law, which is why those who do not practice righteousness in obedience to it are not born again (1 John 3:10).
God's law is His way (Psalms 119:1-3), the truth (Psalms 119:142), and the life (Deuteronomy 32:46-47), and the way to see and know the Father (Exodus 33:13) and Jesus God's word made flesh, so he is the embodiment of the way, the truth, and the life, and the way to see and know the Father (John 14:6-7). Believing in God's word is not a different way to the Father than believing in God's word made flesh.