Here is the context,
Heb 2:17 Wherefore in all things it behoved him to be made like unto his brethren, that he might be a merciful and faithful high priest in things pertaining to God, to make reconciliation for the sins of the people.
Then here it says,
Heb 2:18 For in that he himself hath suffered being tempted, he is able to succour them that are tempted.
Notice it say, "suffered being tempted" and in that context of the same is also found in 1 Peter
1 Peter 2:23 Who, when he was reviled, reviled not again; when he suffered, he threatened not; but committed himself to him that judgeth righteously
This is speaking to a suffering in temptation that can be found in verbal provocations, where his not answering in the like (for example not reviling again) and his threatening not is mentioned
The same word for revile is found in Romans 15:3 is the word reproach
Romans 15:3 For even Christ pleased not himself; but, as it is written, The reproaches of them that reproached thee fell on me.
And so he suffered reproach even as those in Christ will 1 Ti 4:10, 1 Peter 4:14
Likewise Jesus said,
Luke 6:1 Blessed are ye, when men shall hate you, and when they shall separate you from their company, and shall reproach you, and cast out your name as evil, for the Son of man's sake.
Luke 10:25 And, behold, a certain lawyer stood up, and "tempted" him
Mat 22:18 But Jesus perceived their wickedness, and said, Why "tempt ye" me, ye hypocrites?
Mat 22:35 Then one of them, which was a lawyer, asked him a question, "tempting" him
Luke 20:23 But he perceived their craftiness, and said unto them, Why "tempt ye" me?
The same which seek to accuse him, tempting in this manner
John 8:6 This they said, "tempting" him, that they might have "to accuse" him.
Much like their father the devil
Luke 11:54 Laying wait for him, and seeking to catch something out of his mouth, that they might "accuse" him.
So there is a spirit that works in them
John 8:44 Ye are of your father the devil, and the lusts of your father ye will do.
Now the whole context of suffering when tempted
1 Peter 2:22-23 Who "did no sin", neither was guile found "in his mouth" Who, "when he was reviled", reviled "not" again; when he suffered, "he threatened not"; but committed himself to him that judgeth righteously
He is a tried stone, and the Spirit of God drove him out to the wilderness "to be" tempted of Satan (because that is what Satan does, and is called, "the Tempter") thats his Job description. They tempted God in the OT, but that does not mean God was tempted but tried by them in that.