fix ssh reconnection