Charged spinor matter field is quantized in a spatial region bounded by two parallel neutral plates. The most general set of boundary conditions ensuring the confinement of matter within the plates is considered. We study a response of the vacuum of the confined matter to the background uniform magnetic field which is directed orthogonally to the plates. It is proven that, in the case of a sufficiently strong magnetic field, the vacuum pressure onto the plates is positive and independent of the boundary condition, as well as of the distance between the plates.