Skip to content

CoderCLI incorrectly removes duplicate RemoteForward entries in ssh-config #11593

Closed
@elliot-graebert-skydio

Description

@elliot-graebert-skydio

Repro:

coder config-ssh -o "RemoteForward 2222 192.168.11.1:2222" -o "RemoteForward 2223 192.168.11.1:2223"

It correctly recognizes the fact that there are multiple new options in the prompt that goes back to the user, but when it ultimately writes it to the ssh config file, only the last entry remains. In my case, I have four remote forward i have to do, but only 1 of them gets set. As a result, I can't use Coder to auto-configure my ssh-config file, and I have to edit it manually. Or rather, ever dev has to do it manually. Can we fix this so that RemoteForward isn't considered a unique key?

Metadata

Metadata

Assignees

Labels

cliArea: CLIcustomer-reportedBugs reported by enterprise customers. Only humans may set this.s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions