Page MenuHomePhabricator

Juniper hostkey-algorithm deprecation
Open, Stalled, LowPublic

Description

After upgrading drmrs switches to Junos 25.2 Homer is encountering an issue.

Our standard config includes the statement: set system services ssh hostkey-algorithm no-ssh-dss

But according to the doc https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/system-edit-ssh-host-key-algorithm.html

hostkey-algorithm has been removed in Junos 24.2R1.

Starting Junos 22.3R1 "The DSS algorithm is no longer available at this new hierarchy" so I guess that means we don't need no-ssh-dss anymore on any device running 22.3R1 or higher. To be tested.

So we need to add a new flag to remove set system services ssh hostkey-algorithm no-ssh-dss, and once all devices are > 22.3 remove it fully from Homer.

The list of devices running Junos < 22.3 : https://librenms.wikimedia.org/devices?filter%5Btype%5D%5Beq%5D=network&filter%5Bversion%5D%5Bin%5D=22.2R3.15%2C20.4R3.8%2C21.4R3-S1.5%2C21.4R3-S10.9%2C21.4R3-S3.4%2C21.4R3-S5.4%2C21.4R3.16

Related Objects

StatusSubtypeAssignedTask
StalledNone
OpenNone
Resolvedayounsi
Resolvedayounsi
Resolvedayounsi
Resolvedayounsi
ResolvedPapaul
Resolvedayounsi
OpenNone
OpenNone
Opencmooney
Opencmooney
Opencmooney
Resolvedcmooney
Resolvedayounsi
Resolvedayounsi
Resolved• jcrespo
Resolvedayounsi
Resolvedbking
Resolvedcmooney
Resolvedayounsi
Resolvedayounsi
ResolvedFCeratto-WMF
Resolvedcmooney
ResolvedCWilliams-WMF
Resolvedcmooney
ResolvedCWilliams-WMF
Resolvedcmooney
ResolvedCWilliams-WMF
Resolvedcmooney
OpenNone
Resolvedayounsi
Resolvedayounsi
Resolvedayounsi
Resolvedayounsi
ResolvedPapaul
ResolvedPapaul
ResolvedPapaul

Event Timeline

ayounsi triaged this task as High priority.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1344672 had a related patch set uploaded (by Ayounsi; author: Ayounsi):

[operations/homer/public@master] Add flag to deprecate Juniper's hostkey-algorithm

https://gerrit.wikimedia.org/r/1344672

Change #1344672 merged by jenkins-bot:

[operations/homer/public@master] Add flag to deprecate Juniper's hostkey-algorithm

https://gerrit.wikimedia.org/r/1344672

bast6003:~$ ssh -o HostKeyAlgorithms=ssh-dss -o PubkeyAcceptedAlgorithms=ssh-dss cr1-drmrs.wikimedia.org
Unable to negotiate with 2a02:ec80:600:ffff::1 port 22: no matching host key type found. Their offer: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519

Confirmed that devices running 22.3 or more recent don't have DSS.

Change #1344682 had a related patch set uploaded (by Ayounsi; author: Ayounsi):

[operations/homer/public@master] Remove "hostkey_algorithm" in all sites except eqiad/codfw

https://gerrit.wikimedia.org/r/1344682

Change #1344682 merged by jenkins-bot:

[operations/homer/public@master] Remove "hostkey_algorithm" in all sites except eqiad/codfw

https://gerrit.wikimedia.org/r/1344682

ayounsi changed the task status from Open to Stalled.Sep 29 2026, 8:55 AM
ayounsi lowered the priority of this task from High to Low.

Marking it as stalled until we have upgraded all the devices.

Change #1355088 had a related patch set uploaded (by Papaul; author: Papaul):

[operations/homer/public@master] Remove hostkey_algorithm for mr1-eqiad

https://gerrit.wikimedia.org/r/1355088

Change #1355088 merged by Papaul:

[operations/homer/public@master] Remove hostkey_algorithm for mr1-eqiad

https://gerrit.wikimedia.org/r/1355088