In this paper, we will first study the existence and uniqueness of the solution for a one dimensional inverse heat conduction problem (IHCP) via an auxiliary problem. Then the present work is motivated by desire to obtain numerical approach for solving this IHCP. Our method begins with the utilisation of some transformations. These transformations allow us to eliminate an unknown term from parabolic equation to obtain an inverse parabolic problem with two unknown boundary conditions. To solve this inverse problem, we use the fundamental solution method. The effectiveness of the algorithm is illustrated by numerical example.