Skip to content

please expose the ssh user in list-sessions #608

@evgeni

Description

@evgeni

When I do a duffy client list-sessions, I get my sessions and my nodes, but it doesn't tell me which user I shall use for SSH.

Looking at

SSH_REMOTE_CONTEXTUALIZE_CMD = "cat - >> ~root/.ssh/authorized_keys"
I assume it's always root, but it would be nice if that would be part of the API reply:

      "nodes": [
        {
          "hostname": "n27-25-177.pool.ci.centos.org",
          "ipaddr": "172.27.25.177",
          "comment": null,
          "pool": "metal-ec2-c5n-centos-8s-x86_64",
          "reusable": false,
          "data": {
            "provision": {
              "ec2_instance_id": "i-0ad3ef244d3e595db",
              "ec2_instance_type": "c5n.metal",
              "hostname": "n27-25-177.pool.ci.centos.org",
              "ipaddr": "172.27.25.177",
              "public_hostname": "ec2-54-144-113-35.compute-1.amazonaws.com",
              "public_ipaddress": "54.144.113.35",
              "ssh_user": "root" # added by @evgeni
            },
            "nodes_spec": {
              "quantity": 1,
              "pool": "metal-ec2-c5n-centos-8s-x86_64"
            }
          },
          "id": 9208,
          "state": "deployed"
        }
      ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions