[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#975540: ssh-copy-id: patch for "/usr/bin/ssh-copy-id: 260: EOF: not found"



Package: openssh-client
Version: 1:8.4p1-2
Severity: normal

In the indicated version, 'ssh-copy-id' fails to successfully copy the key.


A typical invocation now issues the following error messages:

| /usr/bin/ssh-copy-id: 254: cannot create /dev/null`: Permission denied
| /usr/bin/ssh-copy-id: 260: EOF: not found


The origin of the error can tracked down to line 250:

|   INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF)

There, the closing parenthesis terminates the here-document '<<-EOF'.


FIX: move the trailing ')' into a new line directly after the closing 'EOF' .

See: https://github.com/openssh/openssh-portable/pull/206/files/
#diff-76f25d87bdb42afb3b6fe76947d8c696R250


Thanks and kind regards

  Lars Dölle


Reply to: