Using the ssh-keygen command in the terminal is one way to generate a custom domain and a public key. To generate either a single empty domain name or a fresh set of SSH keys, just run ssh-keygen and follow the on-screen instructions.