小编Geo*_*off的帖子

How to save a file in vscode-remote SSH with a non-root user privileges

I am not able to save any files on my remote server with VSCode Remote SSH because I am not a root user.

I've followed the official documentation 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.

here is my SSH config file /Users/geoff/.ssh/config:

Host gcpmain
    User geoff
    HostName <IP_ADDRESS>
    IdentityFile ~/.ssh/gc_rsa
Run Code Online (Sandbox Code Playgroud)

Obviously, when I try to save any …

vscode-remote

10
推荐指数
5
解决办法
3586
查看次数

标签 统计

vscode-remote ×1