Skip to content

Removes first matching Host block from ~/.ssh/config #42

Closed
@aaronlehmann

Description

@aaronlehmann

If there is a Host block in ~/.ssh/config that matches the name used for the remote connection (for example Host *), this gets removed from the file when attempting to connect to a workspace.

I suspect this is caused by:

parsedConfig.remove({ Host: computedHost.Host })

computedHost.Host would evaluate to the Host value from the first block that matched (* in my example). It would be safer to pass an explicit value to remove.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions