A description of the passive magnetic attitude control system of the TNS-0 №2 nanosatellite is presented. Parameters of a permanent magnet and hysteresis rods are given and their choice is justified. The results of laboratory testing of sensors installed in the satellite are shown.