How to save a file in vscode-remote SSH with a non-root user privileges : <p>I am not able to save any files on my remote server with VSCode Remote SSH because I am not a root user.</p>

<p>I've followed the <a href="https://code.visualstudio.com/docs/remote/ssh" rel="noreferrer">official documentation</a> about how to set up ssh with SSH config file but even if my user as sudo privileges, I can't find any options in VSCode to save with sudo.</p>

<p>here is my SSH config file <code>/Users/geoff/.ssh/config</code>:</p>

<pre><code>Host gcpmain
    User geoff
    HostName &lt;IP_ADDRESS&gt;
    IdentityFile ~/.ssh/gc_rsa
</code></pre>

<p>Obviously, when I try to save any files that require sudo I have this expected error message:</p>

<pre><code>Failed to save 'default': Unable to write file (NoPermissions
 (FileSystemError): Error: EACCES: permission denied, open 
'/etc/nginx/sites-available/default')
</code></pre>

<p>Is there any way that I can force VSCode to save as sudo?
Thanks a lot for your answers! :)</p>
