Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Save as Root in Remote - SSHNew to Visual Studio Code? Get it now.
Save as Root in Remote - SSH

Save as Root in Remote - SSH

yy0931

|
241,476 installs
| (29) | Free
Edit configuration files with root privileges while using the Remote - SSH extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Save as Root in Remote - SSH

This extension saves files with root privileges on Linux or macOS environments connected with Remote - SSH, is an easy solution to [FileSystemProvider: no way of handling permissions issues #48659](https://github.com/microsoft/vscode/issues/48659).

Usage

Select Save as Root in the command palette (F1, Ctrl+Shift+P, or Cmd+Shift+P).

Screenshot

Alternatively, you can use Save as Specified User... command to save as a non-root user.

This extension also adds the New File as Root... option to the explorer's context menu when the window is connected to a remote folder.

Screenshot

Contributing

If you find a bug or have a suggestion, feel free to open an issue or submit a pull request to the GitHub repository.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft