Created attachment 1655 [details] patch solving the problem Using ssh-copy-id to copy a ssh key to a new f11 host that has selinux enabled, the authorized_keys file is created on the remote host with an incorrect context.
Created attachment 1917 [details] Patch suitable for openssh-5.6p1
Created attachment 1922 [details] openssh-selinux-sshdir.patch equivalent patch that won't break every non-linux non-selinux platform.
Comment on attachment 1922 [details] openssh-selinux-sshdir.patch why is this even necessary?
(In reply to comment #3) > Comment on attachment 1922 [details] > openssh-selinux-sshdir.patch > > why is this even necessary? because without it, the files/directories created are unaccessible for ssh/sshd on some installations.
Created attachment 1923 [details] Patch repaired for the SELinux environment without loaded rules Change patch to work correctly on SELinux environment without loaded SELinux rules.
This is fixed in the proposed ssh-copy-id rewrite in bug #1980
mark bugs closed by openssh-6.2 release as CLOSED