We analyse a lossy transmission line and the Johnson-Nyquist noise generated therein. A representation as a noisy two-port with a voltage and a current noise sources on one end of a noiseless two-port is given. An expression for the noise properties is given for an arbitrary temperature profile along the transmission line. Compatibility of the general expression found here with expectations for special cases calculable using thermodynamics is demonstrated.