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

ssh-copy-id fails to RHEL 10

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • openssh
    • No
    • Low
    • rhel-security-crypto-diamonds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CentOS Stream, Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      What is the impact of this issue to you?

      Whenever I try to copy my public ssh-keys to a RHEL10 (or CentOS STREAM 10) system using ssh-copy-id I get temporarily locked out of the target system.

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?: been 100% for me

      Steps to reproduce

      1. install EL10
      2. allow root password login over ssh
      3. ssh-copy-id <target>

      Expected results

      ssh-keys trusted for the target system/user

      Actual results

       

      ➜  ~ ssh-copy-id target-host
      /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ssh-add -L
      /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
      /usr/bin/ssh-copy-id: INFO: 4 key(s) remain to be installed -- if you are prompted now it is to install the new keys
      Connection closed by UNKNOWN port 65535
      ➜  ~ ssh target-host        
      Connection closed by UNKNOWN port 65535
      ➜  ~ ssh target-host
      Connection closed by UNKNOWN port 65535
      ➜  ~ sleep 120
      ➜  ~ ssh target-host
      root@target-host.my.domain's password: 
      Web console: https://target-host.my.domain:9090/ or https://192.168.0.10:9090/
      
      
      Last login: Tue Oct 21 13:23:20 2025 from 192.168.0.100
      root@target-system:~# 
       
      

       

              dbelyavs@redhat.com Dmitry Belyavskiy
              azzid Mattias Fransson (Inactive)
              Dmitry Belyavskiy Dmitry Belyavskiy
              Miluse Bezo Konecna Miluse Bezo Konecna
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: