Magnetic control of squeezing effects