Creating SSH Keys using Openssh on MacOS or Linux

Run the ssh-keygen command to generate a 2048-bit RSA key pairs. The ssh-keygen is part of the tools in OpenSSH suite which is it on your local computer;

ssh-keygen

You are required to select a location for the keys. The keys are stored in the ~/.ssh directory with the filenames id_rsa for the private key and id_rsa.pub for the public key by default. If you specify the default location, the SSH client will automatically look for your SSH keys during authenticating, You can accept them by pressing ENTER (Recommended).

                Generating public/private rsa key pair.
                Enter file in which to save the key (/home/username/.ssh/id_rsa):
                
Note:

If you have previously generated a key pair, you may be prompted thus:

/home/username/.ssh/id_rsa already exists. Overwrite (y/n)?

If you choose to overwrite the key on disk, you will not be able to authenticate using the previous key anymore. Selecting yes is an irreversible destructive process.

Once you select a location for the key, you'll be prompted to enter an optional passphrase which encrypts the private key file on disk.

If you enter one, you will have to provide it every time you use this key (unless you are running SSH agent software that stores the decrypted key). We recommend using a passphrase, but you can press ENTER to bypass this prompt.

                Created directory '/home/username/.ssh'.
                Enter passphrase (empty for no passphrase):
                Enter same passphrase again:

This is the last step in the creation process. You now have a public and private key that you can use to authenticate.

                Your identification has been saved in /home/username/.ssh/id_rsa.
                Your public key has been saved in /home/username/.ssh/id_rsa.pub.
                The key fingerprint is:
                a9:49:EX:AM:PL:E3:3e:a9:de:4e:77:11:58:b6:90:26 username@203.0.113.0
                The key's randomart image is:
                +--[ RSA 2048]----+
                |     ..o         |
                |   E o= .        |
                |    o. o         |
                |        ..       |
                |      ..S        |
                |     o o.        |
                |   =o.+.         |
                |. =++..          |
                |o=++.            |
                +-----------------+
                
                

From here, you can:

Add your public key to your Nobus account to be able to attach it in new FCS Instances on creation.

Add your public key to existing FCS Instances to use SSH key authentication to log in to them.