Skip to content

PubkeyAuthentication is not bool by SSH specifications #829

Description

@ondrejsuk1

Hello,

we're using asyncssh in out project and we found problem with ssh_config - exactly this error:

asyncssh.config.ConfigParseError: /home/sukondrej/.ssh/config line 1: Invalid PubkeyAuthentication boolean value: unbound

leads me to SSHClientConfig configuration parser (and even in SSHServerConfig):

('PubkeyAuthentication', SSHConfig._set_bool),

('PubkeyAuthentication', SSHConfig._set_bool),

This configuration option is not boolean, according the OpenSSH specification. PubkeyAuthentication can be one of yes, no, unbound or host-bound.

I'm not posting OS version or Python version, as mentioned in CONTRIBUTING.rst, because this is not version specific, but if you want them, I'll post them. I found out that this directive is used on these places (but maybe even more):

docs/api.rst:  | PubkeyAuthentication
docs/api.rst:  | PubkeyAuthentication
tests/test_connection.py:            f.write('Match host localhost\nPubkeyAuthentication no')
asyncssh/connection.py:                config.get('PubkeyAuthentication', True))
asyncssh/config.py:        ('PubkeyAuthentication',            SSHConfig._set_bool),
asyncssh/config.py:        ('PubkeyAuthentication',            SSHConfig._set_bool),

BR
Ondřej Suk

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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