Generate New Ssh Key Centos

 
When I clone an OS image to a new, identical hardware PC I of course need to change the host name in a couple of places on the new machine. I suspect it is also good practice to generate new ssh keys for use by openssh server. I found an article here http://www.softec.lu/site/DevelopersCor .. rateNewSsh which outlines the process.

Random key generator node js. If you don't already have an SSH key, you must generate a new SSH key.If you're unsure whether you already have an SSH key, check for existing keys. If you don't want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase. Add your SSH key to your Droplets.On DigitalOcean, you can upload your SSH public key to your account, which lets you add it to your Droplets at creation time.This lets you log in to your servers without a password while still remaining secure.

Feb 11, 2017  In this video i demonstrated how to generate a ssh key on centos 7. Generating a new SSH key and adding it to the ssh-agent After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent. The above command kicks off the SSH Key installation process for users. The -o option instructs ssh-keygen to store the private key in the new OpenSSH format instead of the old (and more compatible PEM format). It is highly recommended to use the -o option as the new OpenSSH format has an increased resistance to brute-force password cracking.


I can generate new dsa, ecdsa and rsa keys using the commands in the article. However, I also find an ed25519 key in /etc/ssh. It was dated the same as the other keys - the data I installed the original OS. Employing my usual monkey see monkey copy/paste/tweak approach I tried the commandThe seems to have worked. It generated keypair files, a fingerprint and a randomart image. The -N and -t parameters seem to be correct according to the man page.
Can anyone confirm that I have supplied all of the necessary inputs to create a valid ed2519 key? Or a way I can test the key for validity?
TIA,

Generate Ssh Key Centos 8

Ken