Create an SSH Key
The first task in the deployment procedure is to create an SSH key. SSH keys act as a method of authentication to access your Cisco Catalyst 8000V instance. When you create an SSH key, a public key and a private key are created in the .ssh directory.
RSA is the default key type until Cisco IOS XE 17.9.x. From Cisco IOS XE 17.10.1a, support for ED25519 key type is added.
To create an SSH key, perform the following steps. Enter the commands in a terminal server.
Procedure
Step 1 |
Run the ssh-keygen -t rsa -f ~/.ssh/keyfile [ -C username] command. Here, ~/.ssh/keyfile is the directory path and filename of the key, for example, -C username is the username that is added as a comment. This variable is optional. Two key files, a private key and a public key, are created in the .ssh directory, for example, For more information on creating an SSH key, see Creating a new SSH key. See also Managing SSH keys in Metadata. Example:
|
Step 2 |
Run the cat
~/.ssh/[keyfile_pub] command. Here, keyfile_pub specifies the public key, for example, Example:
The system displays the contents of the public key. You will need this public key to create a VM instance. |