Bug 2350

Summary: ssh-copy-id doesn't handle keys with missing trailing newline
Product: Portable OpenSSH Reporter: Jakub Jelen <jjelen>
Component: ssh-copy-idAssignee: Philip Hands <phil>
Status: CLOSED FIXED    
Severity: enhancement CC: phil
Priority: P5    
Version: 6.7p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2451    
Attachments:
Description Flags
patch none

Description Jakub Jelen 2015-02-12 21:17:08 AEDT
Created attachment 2548 [details]
patch

One our user ran into problem with missing trailing newline characters in public key file when copying to remote server [1]. Everyone knows that every text file should end with newline character, but tools should handle both as ssh, sshd and other tools do.

I know that this is not major issue and you are working on more important stuff, but this can help usability and avoid confusion if there are some old or malformed keys.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1093168
Comment 1 Philip Hands 2015-11-29 06:37:16 AEDT
Thanks for the patch, and sorry for the time it's take for me to get to it. I've applied it to my git repo:

  http://git.hands.com/?p=ssh-copy-id.git;a=commit;h=de78897ada50ed12f4b0c9faa6e935ce82ee49a6

so hopefully that will make it's way into OpenSSH soon.

Cheers, Phil.
Comment 2 Damien Miller 2021-04-23 15:10:59 AEST
closing resolved bugs as of 8.6p1 release