We study systematically the kaon pseudorapidity distribution in proton-nucleus and nucleus-nucleus collisions at AGS and SPS energies within the cylinder model. The calculated results are compared and shown to be in agreement with the available experimental data.