ssh-sudo-edit
CommunitySudo-elevated, text file editing over SSH with mode and ownership preservation
AuthorNightreaver
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Editing sensitive files on remote systems securely and preserving their mode and ownership while elevating permissions to 'sudo'.
Core Features & Use Cases
- Sudo-elevated File Editing: Perform secure text file edits over SSH with elevated privileges.
- Mode and Ownership Preservation: Maintains the original file mode and ownership upon editing.
- Use Case: Ideal for modifying a system configuration file while maintaining its file security and integrity, even with restricted permissions.
Quick Start
To sudo-edit the /etc/sudoers file, preserving permissions and ownership, use:
ssh_sudo_edit host="prod-server" path="/etc/sudoers" old_string="your_search_text" new_string="your_replace_text"
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ssh-sudo-edit Download link: https://github.com/Nightreaver/python-ssh-mcp/archive/main.zip#ssh-sudo-edit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.