Skip to content

can't find hosts with Match directive at start of ssh_config #211

Description

@gabehowe

Describe the bug
When I have an ssh config that starts with the following line
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
I get the following error.
ERROR [sshping] Failed to parse configuration: Host not found

Moving the directive to the bottom of the file resolves the error.

To Reproduce

  1. Install sshping with cargo install sshping
  2. run sshping

Expected behavior
I expect the test to run.

Desktop (please complete the following information):

  • OS: NixOS 26.05
  • Version 0.3.1

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions