Skip to content

Hardening sshd_config #11

@macie

Description

@macie

Hi, firstly, thanks for your effort with maintenance of a great project. It's unbelievable how difficult is to find just a Git server for docker.

I want to start discussion in this issue about configuration secure by default. There is a popular way to gain access to the server with SSH - by brute force login (with tools such as: hydra). I'm aware of few mitigations (in sshd_config):

  • disable root login: PermitRootLogin no
  • use key only authentication: PasswordAuthentication no and PubkeyAuthentication yes.

I think that, they should be set by default, because not all users may be aware of the problem. But this is a breaking change.

There are more options which looks interesting (such as limiting time of automatic disconnect), but I'm not sure if they are well suited for most people.

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