pub fn sanitize_command(command: &str) -> Result<String>Expand description
Sanitize and validate SSH commands to prevent injection attacks
This function checks for potentially dangerous command patterns and ensures commands are safe to execute over SSH.