sshexport exports your SSH public keys (RSA and/or ed25519) to remote hosts. It generates key pairs locally if needed, ensures correct permissions, updates authorized_keys, and handles SELinux contexts. It can record hosts (with ports and passwords) for later reuse via the -r option.

See sshexport(1) or run "sshexport -h" for usage.

Why use this rather than ssh-copy-id? Because sshexport automates much more. It can generate missing key-pairs, fix local and remote permissions, handle SELinux contexts, record hosts so you know where all your remote keys are, delete installed keys, and systematically rotate remote key pairs.

This code is commonly packaged as "sshexport".

Repology package status