You can generate authentication keys to access a Cumulus Linux switch securely with the
ssh-keygen component of the Secure Shell (SSH) protocol. Cumulus Linux uses the OpenSSH package to provide this functionality. This section describes how to generate an SSH key pair.
Generate an SSH Key Pair
To generate the SSH key pair, run the
ssh-keygencommand and follow the prompts:
Configure a Passwordless System
To configure a completely passwordless system, do not enter a passphrase when prompted in the following step.
To copy the generated public key to the desired location, run the
ssh-copy-idcommand and follow the prompts:
ssh-copy-iddoes not work if the username on the remote switch is different from the username on the local switch. To work around this issue, use the
Connect to the remote switch to confirm that the authentication keys are in place: