Expand description
Privilege elevation utilities for SSH command execution
This module provides utilities for:
- Wrapping commands with
sudofor privilege escalation - Escaping passwords and commands for safe shell execution
The elevation logic for su shells is implemented directly in
SshConnectionManager.
Functionsยง
- escape_
for_ shell - Escapes a string for safe use in single-quoted shell contexts.
- is_
valid_ password - Checks if a password is valid for use in sudo commands.
- sanitize_
password - Sanitizes a password by trimming whitespace.
- wrap_
sudo_ command - Wraps a command for execution with sudo privileges.