UQ-RCC / nimrodg

Nimrod/G
https://rcc.uq.edu.au/nimrod
Apache License 2.0
1 stars 0 forks source link

Mina doesn't fully resolve the host key #12

Closed vs49688 closed 4 years ago

vs49688 commented 5 years ago

The ecdsa-sha2-nistp521 key is missing the trailing aA== causing a key verification error.

Command:

./nimw.sh resource add flashlite pbspro -- --uri=ssh://username@flashlite.rcc.uq.edu.au --key /path/to/key --limit=10 --max-batch-size=2 --add-batch-res-scale=ncpus:1 --add-batch-res-static=walltime:01:00:00 --add-batch-res-scale=mem:1GiB -- -A UQ-RCC
{
  "agent_platform": "x86_64-pc-linux-musl",
  "transport": {
    "name": "sshd",
    "uri": "ssh://username@flashlite.rcc.uq.edu.au",
    "keyfile": "/path/to/key",
    "hostkeys": [
      "ssh-dss AAAAB3NzaC1kc3MAAACBAJ5dwWbFpwVHS1XfxfNuEFG+gwt770d/eC1sKDkLkAmilGko2AB+DS5QrEkWUOKuhn0dsvuvi9g14iSz+439fqn0tHF0LPzp7KqGZmloGkjSOVjqy4JkAk+xthZrt671j0KUuq3DxIbmibcHRyuQQDCxjxZJnyz2RkSiP06N19V1AAAAFQDpoXU890ULUUVDnMlaHmYODe2nzwAAAIBna51ORkuWCviOBuHADVEiuC27ithK1YHzQW84eAXqUKiUXZWbEV7ByBSGRrzEc7WZU1e2dMAb7uACQburkQy3OIf2iJc6zZzVrYLLSZJmdtX/94A3CYWN/j2AGeZR+zNmX3DX8tl+Q0i2Amg22ewl24TSvy0q+fU/RFE9tO5NmgAAAIBDXXcLual8D2GiW5zeRKmp/EyfQjAzRJtj0v8lTntddXzE8ciYcWYARCrTYBjALvbAoPQqvUbvicABgaoGHXkmtoe7g4H0NpgcsXSZnEhqKsXUgaAZraO0r2qRBBeFtE3AMKmg1VPzSvgfdJMmezL0leJUhTmYQb/aEtADhLg3Ow==",
      "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAplbm/kI54sQLlIdGMH5tgf18Z+d6X3Ik3/y1T4l5ddDN6nPvXkVL4WsKJD2boIWo6L7kBiuhz5KY7AtQrLF+NNDoltP/x2j4jdxGnXTUakt59ARrPCcNPAhINOZMNOHqos2B1T0Ca5ZpYeZDu7yJ25Q1J6OpIayxanPot9MvchXTzJ5/dVvVF092ECuGXA9KfclzV0Al486hcWnEENm7KGxfCYY+46hGGpOCBcc+aHtL5mgNj39tRp7d4tK3cNT39SbAvfmd/V5DnTD8ODaPGS3rISYSWuGw/xQq/vpfGDRGtD4/TmKW1I0O+kn95B56HuZ4jiRQSZli5T6WcMdoWw==",
      "ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAD7bmdQjLozXCuciMh4rJ2TkAjznmqmKUdxTkgJDGeAXa2RtgkLSkYIV2SbzSVHgnPJMCQiAgvuCOuLArQS5OpvOwAsmwBoeRamhazYXuQGBwlycpBWJM8lZ7nh9vZAD2skn9MGJdlYaL4WsmQId6Bf3PnS78dQsVFQw3mGMkK5NHlz"
    ]
  },
  "tmpvar": "TMPDIR",
  "pbsargs": ["-A", "UQ-RCC"],
  "limit": 10,
  "max_batch_size": 2,
  "batch_config": [
    { "name": "walltime", "value": 86400, "scale": false },
    { "name": "ncpus", "value": 1, "scale": true },
    { "name": "mem", "value": 1073741824, "scale": true }
  ]
}
$ ssh-keyscan flashlite.rcc.uq.edu.au
# flashlite.rcc.uq.edu.au:22 SSH-2.0-OpenSSH_7.4
flashlite.rcc.uq.edu.au ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAplbm/kI54sQLlIdGMH5tgf18Z+d6X3Ik3/y1T4l5ddDN6nPvXkVL4WsKJD2boIWo6L7kBiuhz5KY7AtQrLF+NNDoltP/x2j4jdxGnXTUakt59ARrPCcNPAhINOZMNOHqos2B1T0Ca5ZpYeZDu7yJ25Q1J6OpIayxanPot9MvchXTzJ5/dVvVF092ECuGXA9KfclzV0Al486hcWnEENm7KGxfCYY+46hGGpOCBcc+aHtL5mgNj39tRp7d4tK3cNT39SbAvfmd/V5DnTD8ODaPGS3rISYSWuGw/xQq/vpfGDRGtD4/TmKW1I0O+kn95B56HuZ4jiRQSZli5T6WcMdoWw==
# flashlite.rcc.uq.edu.au:22 SSH-2.0-OpenSSH_7.4
flashlite.rcc.uq.edu.au ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAD7bmdQjLozXCuciMh4rJ2TkAjznmqmKUdxTkgJDGeAXa2RtgkLSkYIV2SbzSVHgnPJMCQiAgvuCOuLArQS5OpvOwAsmwBoeRamhazYXuQGBwlycpBWJM8lZ7nh9vZAD2skn9MGJdlYaL4WsmQId6Bf3PnS78dQsVFQw3mGMkK5NHlzaA==
# flashlite.rcc.uq.edu.au:22 SSH-2.0-OpenSSH_7.4
flashlite.rcc.uq.edu.au ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOeGyKYiqW7FEXnjGWOwShGWEhu124BLktd/q8CsiJwt
vs49688 commented 4 years ago

Seems to be fixed.