Amazon EC2 : Connecting to Your Linux Instance from Windows Using PuTTY
- Start PuTTY (from the Start menu, click All Programs > PuTTY > PuTTY).
- In the Category pane, select Session and complete the following fields:
- In the Host Name box, enter
user_name
@public_dns_name
. Be sure to specify the appropriate user name for your AMI. For example:- For an Amazon Linux AMI, the user name is
ec2-user
. - For a RHEL5 AMI, the user name is either
root
orec2-user
. - For an Ubuntu AMI, the user name is
ubuntu
. - For a Fedora AMI, the user name is either
fedora
orec2-user
. - For SUSE Linux, the user name is
root
. - Otherwise, if
ec2-user
androot
don't work, check with the AMI provider.
- Under Connection type, select SSH.
- Ensure that Port is 22.
- In the Category pane, expand Connection, expand SSH, and then select Auth. Complete the following:
- Click Browse.
- Select the
.ppk
file that you generated for your key pair, and then click Open. - (Optional) If you plan to start this session again later, you can save the session information for future use. Select Session in the Category tree, enter a name for the session in Saved Sessions, and then click Save.
- Click Open to start the PuTTY session.
- If this is the first time you have connected to this instance, PuTTY displays a security alert dialog box that asks whether you trust the host you are connecting to.
- (Optional) Verify that the fingerprint in the security alert matches the fingerprint that you obtained in step 1. If these fingerprints don't match, someone might be attempting a "man-in-the-middle" attack. If they match, continue to the next step.
- Click Yes. A window opens and you are connected to your instance