https://bugzilla.mindrot.org/show_bug.cgi?id=2110

            Bug ID: 2110
           Summary: ssh-copy-id fails on nonexisting private key
           Product: Portable OpenSSH
           Version: 6.2p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Miscellaneous
          Assignee: [email protected]
          Reporter: [email protected]

ssh-copy-id fails when a private key file (without .pub suffix) is not
present in the same directory as the public key file.

# ls ~/.ssh/id_rsa*
/root/.ssh/id_rsa  /root/.ssh/id_rsa.pub

# cp -vf ~/.ssh/id_rsa.pub /tmp/.
‘/root/.ssh/id_rsa.pub’ -> ‘/tmp/./id_rsa.pub’

# ssh-copy-id -i /tmp/id_rsa.pub root@localhost

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/tmp/id_rsa': No
such file or directory

There's no switch that would disable checking for the private key file.
There's no keypair verification done, simply creating an empty
/tmp/id_rsa file makes ssh-copy-id work again.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to