How do I create a key pair?

SSH keypairs are essential for accessing VMs

You can access keypair options by going to the "Key Pairs" tab located at Project > Compute > Access & Security

Create a new key pair to generate and download a new private key, or Import a key pair to upload an existing public key

Every VM will boot with one key pair associated with the default user. To login to the VM you will need the matching private key

 

Creating a Key Pair (one time only)

Use the bastion to import a new keypair:

  1. Create the new key pair:
    ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa

  2. Use the OpenStack CLI:
    openstack keypair create \
    --public-key   ~/.ssh/id_rsa.pub   mykey

  3. Check the keypair with:
    openstack keypair list
    or go to:
    https://stratus.msi.umn.edu/dashboard/project/access_and_security/

The key pair will be used to boot VMs. Stratus will hold onto the public key, and inject it into VMs, while you hold onto the private key.

 

Category: 
Stratus