6. If the solution to the equation $9 x-17=k x$ with respect to $x$ is a positive integer, then the value of $k$ is ( ).
(A) 8
(B) 2,10
(C) $6,-10$
(D) $\pm 8$
6. D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.