Hydromagnetic coupling between solar wind and magnetosphere