Remote SSH Vscode plugin giving Permission Denied when running installation binary
0
votes
1
answer
30
views
I am getting a Permission denied error when using the Remote SSH plugin in VSCode to install VSCode server. Below is the version information:
Version: 1.102.1 (Universal)
Commit: 7adae6a56e34cb64d08899664b814cf620465925
Date: 2025-07-15T16:41:17.147Z (1 wk ago)
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0
Remote - SSH plugin version: 0.120.0
I get this on problem_server, but it works fine on working_server.
Specifically, on problem_server, I get the following errors in the VSCode log for Remote SSH (as does another colleague):
> Starting VS Code CLI...
[20:30:34.589] > Spawned remote CLI: 1155275
[20:30:34.593] > Exec server process not found
[20:30:34.593] stderr> main: line 421: kill: (1155275) - No such process
[20:30:34.593] > main: line 404: /home/my-user-id/.vscode-server/code-7adae6a56e34cb64d08899664b814cf620465925: Permission denied
[20:30:34.599] > dd278e5bb8e8: start
Rather, on the working server, not only do I end up with shell prompt, but I see this in the log:
Listening on 127.0.0.1:34491
[2025-07-23 14:12:13] info Disposed of connection to running server.
[2025-07-23 14:12:13] info Checking /home/my-user-id/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/log.txt and /home/bcmy-user-id/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/pid.txt for a running server...
[2025-07-23 14:12:16] info Downloading Visual Studio Code server -> /tmp/.tmpDMMA26/stable
[2025-07-23 14:13:26] info Starting server...
[2025-07-23 14:13:26] info Server started
[2025-07-23 15:38:01] info Disposed of connection to running server.
So, it seems to me it's something that executable file that it doesn't like on problem_server. I compare the file information on problem_server (error) with working_server (works in VSCode). Even though the binary is the same (same permissions, md5sum, file type, etc.), but yet, running the code in the shell yields different results. Note that on the working server, while it gives an error that it can't find an installation of VSCode, that's to be expected, as I'm simply running the binary and not going through the entire installation. Most importantly, it does not give Permission denied, and actually executes and gives a message, as opposed to giving Permission Denied. In other words, it's progressing further than on the problem server; I'm trying to figure out why.
[my-user-id@problem_server .vscode-server]$ md5sum code-7adae6a56e34cb64d08899664b814cf620465925
ff8674c3b154525ee6a90aaa607b4b20 code-7adae6a56e34cb64d08899664b814cf620465925
[my-user-id@problem_server .vscode-server]$ ./code-7adae6a56e34cb64d08899664b814cf620465925
-bash: ./code-7adae6a56e34cb64d08899664b814cf620465925: Permission denied
[my-user-id@problem_server .vscode-server]$ file code-7adae6a56e34cb64d08899664b814cf620465925
code-7adae6a56e34cb64d08899664b814cf620465925: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=1867cb6f8a643033d4a1ad6fb23976852117df3a, stripped
[my-user-id@problem_server .vscode-server]$ ls -l code-7adae6a56e34cb64d08899664b814cf620465925
-rwx------. 1 my-user-id my-user-id 24580920 Jul 15 12:44 code-7adae6a56e34cb64d08899664b814cf620465925
[my-user-id@problem_server .vscode-server]$ pwd
/home/my-user-id/.vscode-server
[my-user-id@problem_server .vscode-server]$ sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 33
[my-user-id@problem_server .vscode-server]$ stat code-7adae6a56e34cb64d08899664b814cf620465925
File: code-7adae6a56e34cb64d08899664b814cf620465925
Size: 24580920 Blocks: 48016 IO Block: 4096 regular file
Device: fc09h/64521d Inode: 11337 Links: 1
Access: (0700/-rwx------) Uid: (my-user-id/ bcmy-user-id) Gid: (my-user-id/ bcmy-user-id)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2025-07-23 23:38:46.624510881 -0400
Modify: 2025-07-15 12:44:04.000000000 -0400
Change: 2025-07-23 23:35:03.606497062 -0400
Birth: 2025-07-23 23:28:56.563182723 -0400
[my-user-id@working_server .vscode-server]$ md5sum code-7adae6a56e34cb64d08899664b814cf620465925
ff8674c3b154525ee6a90aaa607b4b20 code-7adae6a56e34cb64d08899664b814cf620465925
[my-user-id@working_server .vscode-server]$ ./code-7adae6a56e34cb64d08899664b814cf620465925
No installation of Visual Studio Code stable was found.
Install it from your system's package manager or https://code.visualstudio.com , restart your shell, and try again.
If you already installed Visual Studio Code and we didn't detect it, run
code version use stable --install-dir /path/to/installation
[my-user-id@working_server .vscode-server]$ file code-7adae6a56e34cb64d08899664b814cf620465925
code-7adae6a56e34cb64d08899664b814cf620465925: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=1867cb6f8a643033d4a1ad6fb23976852117df3a, stripped
[my-user-id@working_server .vscode-server]$ ls -l code-7adae6a56e34cb64d08899664b814cf620465925
-rwx------. 1 my-user-id my-user-id 24580920 Jul 15 09:44 code-7adae6a56e34cb64d08899664b814cf620465925
[my-user-id@working_server .vscode-server]$ pwd
/home/my-user-id/.vscode-server
[my-user-id@working_server .vscode-server]$ sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 33
[my-user-id@working_server .vscode-server]$ stat code-7adae6a56e34cb64d08899664b814cf620465925
File: code-7adae6a56e34cb64d08899664b814cf620465925
Size: 24580920 Blocks: 48016 IO Block: 4194304 regular file
Device: c26ac9c8h/3261778376d Inode: 162132235103771773 Links: 1
Access: (0700/-rwx------) Uid: (my-user-id/ bcmy-user-id) Gid: (my-user-id/ bcmy-user-id)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2025-07-23 20:39:30.000000000 -0700
Modify: 2025-07-15 09:44:04.000000000 -0700
Change: 2025-07-23 14:12:13.000000000 -0700
Birth: 2025-07-23 14:12:13.000000000 -0700
[my-user-id@working_server .vscode-server]$
This problem only seems to happen where VSCode is running on a Mac (Sequoia 15.5), and in connecting to problem_server. Other people using VScode on Windows connecting to problem_server don't have this problem.
I have tried:
1. Comparing the prerequisite packages, which are the same on both the problem_server and working_server
2. Deleting the .vscode-server directory, downgrading the version of Remote SSH, and recreating the problem. I did this for the previous two recent plugin versions, and got the same thing.
As I compare the logs of the successful and failed attempts, it seems to me on the problem_server, it tries to spawn the remote CLI process, which hangs or has some kind of issue and VSCode tries to kill it and doesn't find it before trying to run the binary and get Permission Denied. If so, why would the remote CLI process crash, hang or have an issue?
Any thoughts as to why this is?
Asked by Burvil
(43 rep)
Jul 24, 2025, 07:44 PM
Last activity: Jul 24, 2025, 10:11 PM
Last activity: Jul 24, 2025, 10:11 PM