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?


marked as duplicate by Russell Borogove, ForgeMonkey, Nathan Tuggy, SF., kim holder May 25 '17 at 14:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.