Perform batch SSH operations, handling sudo prompts