Skip to content

localnetwork match condition not supported in ssh_config #793

@tobast

Description

@tobast

Hello,

It seems that the localnetwork condition for Match blocks in ssh_config, introduced in OpenSSH 9.4, is not supported by asyncssh. This triggers a ConfigParseError.

This prevents a user from using asyncssh at all if they have such a match block in their ssh config.

Reproducing

# ~/.ssh/config
match localnetwork 2001:db8::/32
	ProxyJump proxy.example.com
$ ssh example.com  # --> OK
import asyncssh
conn = await asyncssh.connect('example.com')
# --> ConfigParseError: /tmp/tmp.esuGL7jFvj/.ssh/config line 1: Invalid match condition localnetwork

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions