Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshd: allow to manage DenyUsers/AllowUsers #1169

Open
berendt opened this issue Oct 17, 2024 · 2 comments
Open

sshd: allow to manage DenyUsers/AllowUsers #1169

berendt opened this issue Oct 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@berendt
Copy link
Member

berendt commented Oct 17, 2024

root@manager:/etc/ssh/sshd_config.d# cat 99-osism.conf
DenyUsers *@172.20.*
@berendt berendt added the enhancement New feature or request label Oct 17, 2024
@zachelnet
Copy link

zachelnet commented Dec 10, 2024

Hi @berendt
I think for this senario you can use debops.sshd.

sshd__configuration:
  - name: 'PasswordAuthentication'
    value: False
  - name: 'DenyUsers '
    value: '*@172.20.*'
  - name: 'Match_user_dragon'
    option: 'Match'
    comment: 'Only allow the Dragon user to log in via the internal OpenStack network'
    value: 'User dragon'
    config: |
      AllowUsers [email protected].*
    state: 'present'
    separator: True
....

@berendt
Copy link
Member Author

berendt commented Dec 13, 2024

We do not plan to use Debops for more than Grub at the moment. We always have to support CentOS/RHEL & Ubuntu/Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants