File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 22include:
33 - backup.base
44
5+ {# TODO: When we have retired distros older than 20.04, remove this #}
6+ /etc/ssh/ssh_config.d/pubkey.conf :
7+ file.managed :
8+ - contents: |
9+ PubkeyAcceptedAlgorithms +ssh-rsa
10+ - user: root
11+ - group: root
12+ - mode: " 0644"
13+
514{% for backup, config in salt[' pillar.get' ](' backup-server:backups' , {}).items() %}
615
716{{ backup }}-user:
Original file line number Diff line number Diff line change 11# Basic configuration
22# ===================
33
4+ # Include sshd_config.d dir for distros that use it
5+ {% if grains ["oscodename" ] in ["jammy" , "noble" ] %}
6+ Include /etc/ssh/sshd_config.d/*.conf
7+ {% endif %}
8+
49# Either disable or only allow root login via certificates.
510{% if salt ["pillar.get" ]("ssh:allow_root_with_key" , False ) %}
611PermitRootLogin without-password
You can’t perform that action at this time.
0 commit comments