What shall I do to be saved

During the crucifixion of Jesus Peter was afraid of been recognized with Jesus at that due to fear the gripped him. Peter was asked if he was a follower of Jesus by a slave girl:
69 Now Peter sat without in the palace: and a damsel came unto him, saying, Thou also wast with Jesus of Galilee. 70 But he denied before them all, saying, I know not what thou sayest. 71 And when he was gone out into the porch, another maid saw him, and said unto them that were there, This fellow was also with Jesus of Nazareth.