visual-studio-codevscode-remote-sshcyber-ark

VS Code remote-ssh connection via CyberArk not working


I am using VS Code and remote-ssh extension to manage files on remote servers. VS Code is on my Windows 10, same Laptop is used for both scenarios explained below.

What works:

What does not work:

Below are the logs from VS code after attempting to connect to one of the servers via CyberArk. Not all the logs are shown for security reasons. The error message is identical each time I attempt to connect to the remote server.

[22:10:30.538] > cb7fa75ea92b: running
[22:10:30.569] > bash: line 178: syntax error: unexpected end of file
[22:10:31.895] "install" terminal command done
[22:10:31.896] Install terminal quit with output: bash: line 178: syntax error: unexpected end of file
[22:10:31.896] Received install output: bash: line 178: syntax error: unexpected end of file
[22:10:31.896] Failed to parse remote port from server output
[22:10:31.898] Resolver error: Error: 
    at g.Create (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:499734)
    at t.handleInstallOutput (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:497056)
    at t.tryInstall (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:620589)
    at async c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:580447
    at async t.withShowDetailsEvent (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:583753)
    at async k (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:577412)
    at async t.resolve (c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:581124)
    at async c:\Users\foo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.109.0\out\extension.js:2:847283
[22:10:31.905]

Solution

  • There is a feature request in the backlog:

    https://github.com/microsoft/vscode-remote-release/issues/5906