View Issue Details

IDProjectCategoryView StatusLast Update
0006890Kali LinuxGeneral Bugpublic2021-09-14 20:14
Reporter0v1p3r Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Product Version2020.4 
Summary0006890: ssh-copy-id EOF Error
Description

On line 260: EOF not found

INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF) <-- this brace must be put behind the last EOF (see below)
cd;
umask 077;
mkdir -p $(dirname "${AUTH_KEY_FILE}") &&
{ [ -z `tail -1c ${AUTH_KEY_FILE} 2>/dev/null` ] || echo >> ${AUTH_K
EY_FILE}; } &&
cat >> ${AUTH_KEY_FILE} ||
exit 1;
if type restorecon >/dev/null 2>&1; then
restorecon -F .ssh ${AUTH_KEY_FILE};
fi
EOF
) <-- here

to defend against quirky remote shells: use 'exec sh -c' to get POSIX;

printf "exec sh -c '%s'" "${INSTALLKEYS_SH}"
}
// Comment
after changing this I the command will execute correctly.

Steps To Reproduce

I had Kali 2020.4 newly installed and updated.
I installed the same version in a VM on my system and replicated the error.

Additional Information

It will output this error but does complete the task and sais it has imported the key but the autorized_keys file is empty after execution.

Activities

g0tmi1k

g0tmi1k

2021-09-14 20:14

administrator   ~0015151

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?
If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

Issue History

Date Modified Username Field Change
2020-11-30 20:26 0v1p3r New Issue
2021-09-14 20:14 g0tmi1k Status new => closed
2021-09-14 20:14 g0tmi1k Resolution open => suspended
2021-09-14 20:14 g0tmi1k Note Added: 0015151