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
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.useLocalServersetting
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.