Accessing Instances in Windows
This section describes how to access instances running Windows.
Getting the Instance Password
To access an instance, you must get its administrator password.
To get the administrator password
-
Enter the following command:
PROMPT>
gsg-keypair
Amazon EC2 returns the Windows password.
Note Unless the key pair is in the current directory, you must specify the full key pair path.
-
Write down or save the password.
After logging in, you can change it.
Getting the RDP Certificate
To verify you are connecting to the correct server, you must get the RDP certificate.
To get the RDP certificate
-
Enter the following command:
PROMPT>
instance_id
date_time
<RDPCERTIFICATE><DN>CN=instance_id
, OU=EC2, O=Amazon.com</DN><THUMBPRINT>rdp_certificate
</THUMBPRINT></RDPCERTIFICATE>Amazon EC2 returns the RDP certificate information.
-
Write down or save the information.
Accessing the Instance
This section describes how to connect to your instance.
To connect to your instance
-
Get the public IP address of your local machine by going to a search engine, entering "what is my IP address," and using one of the provided services.
-
Authorize the security group to allow Remote Desktop access:
PROMPT>
your_ip_address
/32PERMISSION default ALLOWS tcp 3389 3389 FROM CIDR
your_ip_address
/32 -
Retrieve the FQDN of your instance.
This example retrieves the FQDN of the
i-ae0bf0c7
instance.PROMPT>
i-ae0bf0c7
RESERVATION r-7430c31d 924417782495 default INSTANCE i-ae0bf0c7 ami-2bb65342 ec2-67-202-7-236.compute-1.amazonaws.com ip-10-251-31-162.ec2.internal running gsg-keypair 0 m1.small 2008-03-21T16:19:25+0000 us-east-1a
In this example, the FQDN is
ec2-67-202-7-236.compute-1.amazonaws.com
-
On the taskbar, click Start, point to Programs, point to Accessories, point to Communications, and click Remote Desktop Connection.
The Remote Desktop Connection dialog box appears.
-
Enter the FQDN in the Computer field.
-
Click the Advanced or Security tab.
-
Select Warn me or Attempt authentication from the list box.
-
Click Connect.
The Amazon EC2 instance returns a security alert.
-
To verify the instance, click View Certificate.
The Certificate page appears.
-
Click the Details tab.
The Details page appears.
-
Select the Thumbprint and verify it against the value you wrote down in previous procedure.
-
If it matches, click OK and then Yes.
The Remote Desktop Connection client connects to the instance.
-
Enter "administrator" as the user name and the instance password. .
You can now use the Amazon EC2 instance as you would any Windows-based system.
Note | |
---|---|
If you plan to allow other users to remotely access the instance, you must add them to the Remote Desktop Users group. |