A local client machine is required for accessing EC2. For example, we can use the local client machine to launch EC2 instances, log in to the instances on EC2, and so on. In this recipe we will list steps to configure a local machine for EC2 connection.
Before getting started, we assume that we have registered with AWS and security credentials have been created. We also assume that a machine with Linux has been installed.
Use the following steps to configure a local machine for EC2 remote access:
Get the Access Key ID and the Secret Access Key from the security credentials web page as shown in the following screenshot:
Move the key pair to the
.ec2
directory using the following command:mv <key-pair-name>.pem ~/.ec2/
Move the private key file to the
.ec2
directory using the following command:mv pk-*.pem ~/.ec2/
Move the certificate file to the
.ec2
directory using the following command:mv cert-*.pem ~/.ec2/
Download...