microsoft / microsoft/vscode-remote-release

[Remote-SSH Bug]: vscode does not parse the argument correctly in converting the 'ssh -R' command to 'RemoteForward' specification in ssh_config

Open
#8,012 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug ssh
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Is there an existing issue for this bug?
  • I have searched the existing issues
Required Troubleshooting Steps
  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
Connect Locally

It doesn’t connect successfully (same error message)

->

No response

Expected Behavior

When I try to "connect current window to host", and "add a new host" with the ssh command ssh example.com -R 123:localhost:456, vscode parses it to the following in config

Host example.com
  HostName example.com
  RemoteForward 123:localhost:456

The third line cannot be interpreted by OpenSSH.

The third line should be RemoteForward 123 localhost:456. According to ssh_config and ssh.

Steps To Reproduce

No response

Remote-SSH Log
Remote-SSH Log

> ~/.ssh/config line 3: Bad forwarding specification.

Anything else?

No response

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.