Skip to content

Make Publickey authentication configurable  #750

Closed
@debbabi

Description

@debbabi

Description

PubkeyAuthentication is actually hardcoded as true.
We have some cases in our cluster were we want to set it to false globally, but true for some Matched Addresses only (using Match Address directive) like the following configuration example:

# /etc/ssh/sshd_config
...
PubkeyAuthentication no
...
Match Address 192.168.1.0/24
    PubkeyAuthentication yes
...

Solution

Add a new variable ssh_pubkey_authentication and set it true by default.
As like, we can override this global default value to false and set our specific Match Address rules.
Please check the following PR: #749

Alternatives

No response

Additional information

...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions