Bug 1786

Summary: ssh-copy-id's man page is misleading w.r.t. changing permissions
Product: Portable OpenSSH Reporter: asguthrie
Component: DocumentationAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: djm, dtucker
Priority: P2    
Version: 5.5p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1708    
Attachments:
Description Flags
ssh-copy-id man page update djm: ok+

Description asguthrie 2010-06-22 06:52:21 AEST
"It also changes the permissions of the remote user’s home, ~/.ssh, and ~/.ssh/authorized_keys to remove group writability (which would otherwise prevent you from logging in, if the remote sshd has StrictModes set in its configuration)."

However, aside from setting an appropriate umask before creating a .ssh directory (if none exists), it doesn't do this. In particular, if .ssh exists and is group-writable, then it will remain group-writable, causing the key to be ignored by sshd if StrictModes is on.

A patch for the man page is attached.

Thanks to Steve Dee for the initial report and patch in Ubuntu (LP: #156049)
Comment 1 asguthrie 2010-06-22 06:53:13 AEST
Created attachment 1881 [details]
ssh-copy-id man page update
Comment 2 Darren Tucker 2010-07-19 14:00:36 AEST
Comment on attachment 1881 [details]
ssh-copy-id man page update

looks reasonable to me.
Comment 3 Darren Tucker 2010-07-19 21:25:41 AEST
patch applied and will be in 5.6p1.  Thanks.
Comment 4 Darren Tucker 2010-08-27 10:27:51 AEST
With the release of OpenSSH 5.6p1 this bug is now considered closed.  If you have further problems please reopen or file a new bug as appropriate.