-
Notifications
You must be signed in to change notification settings - Fork 3
8._KeyPairs
The awsm
KeyPair class is created during the initial setup, and a new key is actually generated at the same time. When you create new KeyPair classes in awsm, you can either upload your own public key (keeping your private key completely secure), or let awsm generate a new 4096 bit RSA keypair (locally) and store both in SimpleDB.
$ awsm listKeyPairs --help
NAME:
awsm listKeyPairs - List Key Pairs
USAGE:
awsm listKeyPairs [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listKeyPairs awsm
This will list all KeyPairs matching the search term awsm
, the output should look similar to this:
$ awsm listKeyPairs awsm
+----------+-------------------------------------------------+-----------+
| KEY NAME | KEY FINGERPRINT | REGION |
+----------+-------------------------------------------------+-----------+
| awsm | 08:7e:14:3c:b3:31:58:22:ea:52:3a:51:c4:6a:d9:68 | us-east-1 |
+----------+-------------------------------------------------+-----------+
$ awsm createKeyPair --help
NAME:
awsm createKeyPair - Create a Key Pair in the specified region
USAGE:
awsm createKeyPair [arguments...]
ARGUMENTS:
class - The class of the key pair
region - The region to create the keypair in
awsm createKeyPair awsm us-east-1
This will create (import) the previously generated KeyPair named awsm
in us-east-1
, the output should look similar to this:
$ awsm createKeyPair us-east-1
✓ Found KeyPair class configuration for [awsm]!
△ Created public key named [awsm] in [us-east-1]!
$ awsm installKeyPair --help
NAME:
awsm installKeyPair - Installs a Key Pair locally
USAGE:
awsm installKeyPair [arguments...]
ARGUMENTS:
class - The class of the key pair
awsm installKeyPair awsm
This will install locally (on the machine running the command) the awsm
KeyPair, the output should look similar to this:
$ awsm installKeyPair awsm
✓ Found KeyPair class configuration for [awsm]!
△ Created private key at [/Users/user/.ssh/awsm.pem]
△ Created public key at [/Users/user/.ssh/awsm.pub]
$ awsm deleteKeyPairs --help
NAME:
awsm deleteKeyPairs - Delete KeyPairs
USAGE:
awsm deleteKeyPairs [arguments...]
ARGUMENTS:
name - The name of the KeyPair to delete
awsm deleteKeyPairs awsm
This will delete KeyPairs matching the name awsm
, the output should look similar to this:
$ awsm deleteKeyPairs awsm
+----------+-------------------------------------------------+-----------+
| KEY NAME | KEY FINGERPRINT | REGION |
+----------+-------------------------------------------------+-----------+
| awsm | 08:7e:14:3c:b3:31:58:22:ea:52:3a:51:c4:6a:d9:68 | us-east-1 |
+----------+-------------------------------------------------+-----------+
▶ Are you sure you want to delete these KeyPairs?
◀ y
△ Deleted KeyPair [awsm] in region [us-east-1]!