The spectra and global distributions of the X-ray emissions generated by the solar wind charge-exchange (SWCX) process in the terrestrial magnetosheath are investigated based on a global hybrid model and a global geocoronal hydrogen model. The solar wind O6+ ions which are the primary charge state for oxygen ions in solar wind are considered. The line emissivity of the charge-exchange born O5+ ions are calculated by Spectral Analysis System for Astrophysical and Lab oratory (SASAL). It is found that the emission lines from the O5+ ranges from 105.607 to 118.291 eV with the strong line at 107.047 eV. We then simulated the magnetosheath X-ray emission intensity distributions with a virtual camera at two positions of north pole and dusk at six stages during the passing of a perpendicular interplanetary shock combined with a tangential discontinuity structure through the Earth’s magnetosphere. During this process, the X-ray emission intensity increases with time, and the maximum value is 27.11 keV cm-2 s-1 sr-1 on the dayside, which is 4.5 times that before the solar wind structure reaches the Earth. A clear shock structure can be seen in the magnetosheath and moves earthward. The maximum emission intensity seen at dusk is always higher than that seen at north pole.