microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.64k stars 282 forks source link

[Remote-SSH Bug]: Jailed Shell cPanel user unable to open integrated terminal: The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.). #9876

Open legendarylion opened 4 months ago

legendarylion commented 4 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Issue

It connects successfully, files can be edited and saved, but the integrated terminal does not work as expected with "Jailed Access" set to the cPanel account.

Expected Behavior

The expected behavior is for the terminal to open.

If the cPanel is set to "Normal Access" the terminal launches correctly.

Steps To Reproduce

Connect via Remote SSH to cPanel set as "Jailed Shell" SSH Terminal access Open terminal ERROR: The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.). Terminal automatically closes

Remote-SSH Log

N/A No log available, exception error thrown, terminal closes.

bamurtaugh commented 4 months ago

cc @Tyriar @meganrogge for any thoughts

meganrogge commented 4 months ago

does disabling shell integration, terminal.integrated.shellIntegration.enabled fix it for you?

legendarylion commented 4 months ago

Hey there,

No, that does not solve the problem.

settings.json { "terminal.integrated.shellIntegration.enabled": false, ... }

Still predictably throws: The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.). when connected to the account and initiating a terminal in the editor.

Changing the cPanel status to "Normal" shell resolves this, but of course carries more security risks.

On Mon, Jun 3, 2024 at 11:29 AM Megan Rogge @.***> wrote:

does disabling shell integration, terminal.integrated.shellIntegration.enabled fix it for you?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-remote-release/issues/9876#issuecomment-2145515161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTAHIJ3OTKP6IN2P556NATZFSDWNAVCNFSM6AAAAABHSEDKTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVGUYTKMJWGE . You are receiving this because you authored the thread.Message ID: @.***>

meganrogge commented 4 months ago

has this always been the case or has the issue appeared recently?

legendarylion commented 4 months ago

I was just working on this issue. :)

I believe it wasn't an issue in an earlier version of VSC, but I can't remember what version the issue started.

I was able to find another thread about this that another user was experiencing the same issue: https://stackoverflow.com/questions/70052130/how-to-fix-vs-code-error-with-remote-ssh-the-terminal-process-failed-to-launch

On Fri, Jun 7, 2024 at 2:13 PM Megan Rogge @.***> wrote:

has this always been the case or has the issue appeared recently?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-remote-release/issues/9876#issuecomment-2155301735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTAHIOP5CRPU3EINCKL6ADZGHZ4JAVCNFSM6AAAAABHSEDKTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGMYDCNZTGU . You are receiving this because you authored the thread.Message ID: @.***>

vs-code-engineering[bot] commented 1 day ago

Hey @Tyriar @meganrogge, this issue might need further attention.

@legendarylion, you can help us out by closing this issue if the problem no longer exists, or adding more information.