core: execute SSH commands in context of login shell [GH-2636]