Skip to content

Not possible to save custom SSH settings in startup-config #1015

@mattiaswal

Description

@mattiaswal

Current Behavior

Before 25.04 there is a bug causing the upgrade script to always run, this makes the problem worse.

In startup:

  "infix-services:ssh": {
    "enabled": true,
    "hostkey": [
      "genkey"
    ],
    "listen": [
      {
        "name": "11",
        "address": "11.1.1.1",
        "port": 22
      },
      {
        "name": "ipv4",
        "address": "0.0.0.0",
        "port": 22
      },
      {
        "name": "ipv6",
        "address": "::",
        "port": 22
      }
    ]
  },

Running this script (should not do anything since already upgraded):
sh /usr/share/confd/migrate/1.3/10-ssh-server.sh /cfg/startup-config.cfg

Resulting in:
  "infix-services:ssh": {
    "enabled": true,
    "hostkey": [
      "genkey"
    ],
    "listen": [
      {
        "name": "ipv4",
        "address": "0.0.0.0",
        "port": 22
      },
      {
        "name": "ipv6",
        "address": "::",
        "port": 22
      }
    ]
  },

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions