Generate default 3072-bit RSA (and SHA256) key.
ssh-keygen -C "$(whoami)@$(uname -n)-$(date --iso-8601=date)"
Upon issuing the ssh-keygen command, you will be prompted for the desired name and location of your private key.
Use date -Idate
on macOS.
You can set different keys to be used for different hosts or remote users by using ~/.ssh/config
.