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