Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-40361

[Machines] Cannot connect to the vm by SSH key if creating with "Direct attachment"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • cockpit-machines
    • None
    • Moderate
    • rhel-sst-cockpit
    • ssg_front_door
    • None
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      [Machines] Cannot connect to the vm by SSH key if creating with "Direct attachment"

      Please provide the package NVR for which bug is seen:

      cockpit-machines-313-1.el9.noarch

      cockpit-316-1.el9.x86_64

      libvirt-dbus-1.4.1-5.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Prepare a rhel-guest-images file

      2. Create a VM(Cloud based image) with a SSH key and "Create and edit", then change the NIC to "Direct attachment" , then click "Install"

      3. Wait until the vm boot successful, enter the vm with the user and user password first, check  authorized_keys

      1. cat ~/.ssh/authorized_keys

      The SSH key was not added.

      4. Try to connect to the VM with SSH key, can not connect.

      Expected results

      There should be SSH key in the authorized_keys and can connect the vm with the SSH key 

      Actual results

      See step 3&4

              Unassigned Unassigned
              xchen@redhat.com Xiang Hua Chen
              Yunming Yang Yunming Yang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: