Skip to content

Commit c9bda76

Browse files
authored
backup: accept older public key algorithms (#482)
mail.ams1.psf.io is using ssh-rsa still, which isn't ideal but until it is upgraded we need to accept this algorithm
1 parent 2dcd98a commit c9bda76

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

salt/backup/server/init.sls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
include:
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:

salt/ssh/configs/sshd_config.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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) %}
611
PermitRootLogin without-password

0 commit comments

Comments
 (0)