-
Notifications
You must be signed in to change notification settings - Fork 331
Elevate rights on SSH remote #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In a local window, if you try to save a file that the user doesn't have permissions to edit, vscode will prompt to retry with sudo. I assume the same works in a remote window. Have you tried? |
Hi, no - unfortunately not. At least not in VS Code for Windows (1.35.0-insider) being connected to an SSH remote. I tried saving a generic file to a directory without the necessary permissions: I'm going to retry it on a Linux machine later. To be honest, I didn't event known about the existence of this feature for local environments 🤔 |
I am mainly wanting this so I can edit files in When I edit a config file in, for example,
I am given the options to I am able to |
@bpasero should elevation work in a remote context? |
No. Duplicate of microsoft/vscode#48659 |
Hi,
this is more of a quick thought I have, but not a good idea for implementation yet.
Following scenario, I think it is quite typical:
operator
) that has the right to dosudo
/su
/etc/*
), of course this is only allowed by rootI'm thinking of some possibility to elevate the permissions of the file explorer/ text editor of Code, so that I log in using
operator
over SSH, but Code runs elevated as root throughsudo
.However, I currently have no idea what the proper implementation could be for that.
It would be quite useful for administration purposes.
The text was updated successfully, but these errors were encountered: