microsoft / microsoft/vscode-cpptools

"${command:pickRemoteProcess}" does not work with remote SSH security banner

Open
#6,289 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Debugger

Describe the bug

  • OS and Version: Windows 10 Pro (64-bit) 10.0.19041
  • Remote OS version: Ubuntu 16.04.7 LTS
  • VS Code Version: Code 1.50.0
  • C/C++ Extension Version: 1.0.1
  • Other extensions you installed (and if the issue persists after disabling them): -

${command:pickRemoteProcess} does not work with a remote SSH server that displays a security banner before login.

To Reproduce

  1. Set the banner in /etc/ssh/sshd_config:
Banner /some/path/sshd-banner

/some/path/sshd-banner:

========================== Authorized Access Notice ===========================
              This computer system is the property of Big Tech Co.
      Activities are actively monitored and unauthorized access or use of
                      this computer system is prohibited
===============================================================================
  1. Create a launch configuration with "request": "attach", pipeTransport and "processId": "${command:pickRemoteProcess}"
  2. Launch the configuration

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the /etc/ssh/sshd_config Banner setting and a launch configuration using pipeTransport and "processId": "${command:pickRemoteProcess}". Start by tracing how the remote process picker handles SSH output before login. Done means the picker works when the remote SSH server displays the documented security banner.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.