Thanks for your report. This was actually fixed upstream a little while back, in OpenSSH 5.6p1:
20100618 - (djm) [contrib/ssh-copy-id] Update key file explicitly under ~ rather than assuming that $CWD == $HOME. bz#1500, patch from timothy AT gelter.com The packages in Natty contain this fix. ** Bug watch added: OpenSSH Portable Bugzilla #1500 https://bugzilla.mindrot.org/show_bug.cgi?id=1500 ** Also affects: openssh via https://bugzilla.mindrot.org/show_bug.cgi?id=1500 Importance: Unknown Status: Unknown ** Changed in: openssh (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Registry Administrators, which is the registrant for portable OpenSSH. https://bugs.launchpad.net/bugs/686671 Title: ssh-copy-id assumes $HOME _______________________________________________ Mailing list: https://launchpad.net/~registry Post to : registry@lists.launchpad.net Unsubscribe : https://launchpad.net/~registry More help : https://help.launchpad.net/ListHelp