This question already has an answer here:
Earth's magnetic field on its surface is 25 to 65 microtesla. Besides earth's atmospheric protection, majority of sun's harmful radiation on the earth is shielded by this small magnetic field. Such a small magnetic field can easily be produced by a permanent dipole magnet or a small current around the spacecrafts or space suits. Then why the space craft or space suites are not designed with magnetic fields?