Green’s Dictionary of Slang

cabin fever n.

[coined for those suffering on long sea voyages]

lassitude, restlessness or irritability as a result of being confined in too small a space, with no variety in companions or occupations.

B.M. Bower [title of novel] Cabin Fever.
E. Shephard Paul Bunyan 131: But that year they got the spring-fever or the cabin-fever or somethin’, and got lazy and laid down on their jobs.
Magee Courier (MS) 15 Aug. 13/3: The vaillains get cabin fever in their hide-out.
[UK] (ref. to 1950s–60s) Baker & Stanley Hello Sailor! 94: Men who were straight might eventually give in to [...] ‘cabin fever’, a seabourne counterpart to ‘jail fever’ or ‘stir craziness’ and turn to gay men as a substitute for women.
[US](con. 1962) J. Ellroy Enchanters 64: Jungle juice spawns cabin fever.