Creating an SSH Key Pair for User AuthenticationThe simplest way to generate a key pair is to run ssh-keygen without arguments. They should have a proper termination process so that keys are removed when no longer needed.
Public and private key generation online store. Thus, they must be managed somewhat analogously to user names and passwords. Here's an example: klar (11:39) ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/ylo/.ssh/idrsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/ylo/.ssh/idrsa.Your public key has been saved in /home/ylo/.ssh/ key fingerprint is:SHA256:Up6KjbnEV4Hgfo75YM393QdQsK3Z0aTNBz0DoirrW+c key's randomart image is:+-RSA 2048-+.oo.o.X.
In this case, it will prompt for the file in which to store keys.