Accessing Amazon EC2 instances created by OpsCenter

Instructions for logging in with SSH to Amazon EC2 instances created by OpsCenter.

If you are running OpsCenter on Amazon EC2, you can use ssh to log in to the instances created by OpsCenter. Using the default AMI, the username is ubuntu. The private key is located in /var/lib/opscenter/ssl/ and is named after the region in which the opscenterd instance is running appended with -OpsCenterProvisioningKeyPair.pem. For example, the private key might be US_West_(Northern_California)-OpsCenterProvisioningKeyPair.pem.

Due to the way SSH handles permissions on the private key file, you must use sudo to call ssh unless you make a copy of the private key and move it to a location owned by a non-root user.

Procedure

Use SSH to log in to the EC2 instance.
$ sudo ssh -i "/var/lib/opscenter/ssl/US_West_(Northern_California)-OpsCenterProvisioningKeyPair.pem" ubuntu@10.20.30.40