Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Remote RootNew to Visual Studio Code? Get it now.
Remote Root

Remote Root

rezbouchabou

|
774 installs
| (0) | Free
Seamlessly create, edit, save, and manage files with sudo/root permissions over Remote - SSH.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Remote Root for VS Code

Remote Root integrates seamlessly with the Remote - SSH extension to create, edit, save, and manage remote files and directories requiring elevated (sudo/root) permissions.

Requirements

  • VS Code with the official Remote - SSH extension connected to a remote Linux or macOS host.
  • A remote user account with sudo access for target operations.
  • System utilities installed on the remote machine for specialized features (e.g., zip, unzip, 7z, rar, unrar, xz, zstd, lzma). Attribute changes require Linux and chattr.

Getting started

  1. Connect to your remote host using the Remote - SSH extension.
  2. Install Remote Root in the remote workspace extension host.
  3. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run Remote Root: Check Sudo Access to confirm authentication flow.
  4. Right-click files or folders in the File Explorer to open the Remote Root context menu, or invoke commands directly from the Command Palette or Editor Toolbar.

Commands

Command Command ID Description
Save as Root remote-root.saveFile Saves active editor using root privileges (Ctrl+Shift+Alt+S / Cmd+Shift+Alt+S).
Save as User... remote-root.saveFileAsUser Prompts for a remote username and saves the active file under that user.
Open as Root... remote-root.open Opens a file in an elevated editor tab or opens a folder as a new root workspace window.
Open as User... remote-root.openAsUser Opens a file or folder workspace under a specified user identity.
New File as Root / User... remote-root.newFile / .newFileAsUser Creates a new file at a path with elevated or custom user ownership.
New Folder as Root / User... remote-root.newFolder / .newFolderAsUser Creates a new directory path (mkdir -p) with elevated or custom user ownership.
Cut as Root remote-root.cut Cuts selected Explorer items into the Remote Root clipboard.
Copy as Root remote-root.copy Copies selected Explorer items into the Remote Root clipboard.
Paste as Root remote-root.paste Pastes clipboard contents to a target folder.
Move as Root... remote-root.move Relocates selected files/folders to a specified directory.
Rename as Root... remote-root.rename Renames single or multiple items with path collision validation.
Delete as Root remote-root.delete Permanently deletes selected items (rm -rf) after confirmation.
Change Permissions... remote-root.chmod Modifies file and folder permissions (0755, u+x).
Change Ownership... remote-root.chown Updates owner and group (user:group or uid:gid).
Change Attributes... remote-root.chattr Modifies Linux file attributes (e.g., +i immutable, -a append-only).
Compress to Archive... remote-root.compress Packs selected items into .tar.gz, .zip, .7z, .tar.xz, etc.
Extract Archive... remote-root.extract Unpacks supported archive formats into a destination directory.
Check Sudo Access remote-root.sudo Tests remote privilege command execution (sudo -v).

Settings

Configure these in Settings > Extensions > Remote Root or in your remote/workspace settings.json.

Setting Default Description
remote-root.command sudo Sudo executable name or absolute path on the remote host. Enter the executable only, without arguments. It must support -S password input.
remote-root.timeout 60 Operation timeout in seconds (10–300). Time spent entering the password is not counted.

Notes

  • Passwords are piped directly to the privilege escalation process via standard input (stdin) using VS Code's native secure input modal they are never logged, saved, or stored in settings or extension logs. If your remote account is configured for passwordless sudo, operations run automatically without any prompt interruptions.
  • Remote Root runs commands on the connected Linux or macOS host and cannot bypass its sudo policy.
  • doas, wrappers requiring a terminal, and sudo -A askpass configurations are not compatible with the password flow.
  • Install any required archive tools on the remote host. chattr is available only on Linux.
  • Recursive permission or ownership changes and permanent deletion can have significant effects. Check the selected items and scope before proceeding.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft