Create SSH Key


Follow the steps below to easily set up a ssh key using the exc CLI.

Prerequisites

  1. Log In to exc

    • Ensure that you are logged in to the exc CLI. If you haven’t logged in yet, please refer to the Login and Registration Guide to complete the login process.
  2. Verify Login Status

    • To verify if you are logged in, run the following command:
      exc compute key list
    • If you receive a 401 Unauthorized error, please log in again.

Create an SSH Key Pair

  • To create a new SSH key pair, run the following command:

    ssh-keygen -t ed25519 -f ~/.ssh/exc_key -N ''
    ssh-add ~/.ssh/exc_key
    • This command will generate a public and private key pair at the specified path (~/.ssh/exc_key).
  • To add the newly created SSH key to exc, run:

    exc compute key create --name exc_key --ssh-public-key-path ~/.ssh/exc_key.pub
  • List existing SSH keys to verify:

    exc compute key list

Next

You are now ready to create a VM of your choice

Choose from the VM types below.