
SSH using Putty
To connect to your instance using PuTTY
- Start PuTTY (from the Start menu, choose All Programs, PuTTY, PuTTY).
- In the Category pane, choose 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 Amazon Linux 2 or the Amazon Linux AMI, the user name is
ec2-user
. - For a CentOS AMI, the user name is
centos
. - For a Debian AMI, the user name is
admin
orroot
. - For a Fedora AMI, the user name is
ec2-user
orfedora
. - For a RHEL AMI, the user name is
ec2-user
orroot
. - For a SUSE AMI, the user name is
ec2-user
orroot
. - For an Ubuntu AMI, the user name is
ubuntu
. - Otherwise, if
ec2-user
androot
don’t work, check with the AMI provider.
- For Amazon Linux 2 or the Amazon Linux AMI, the user name is
- (IPv6 only) To connect using your instance’s IPv6 address, enter
user_name
@ipv6_address
. Be sure to specify the appropriate user name for your AMI. For example:- For Amazon Linux 2 or the Amazon Linux AMI, the user name is
ec2-user
. - For a CentOS AMI, the user name is
centos
. - For a Debian AMI, the user name is
admin
orroot
. - For a Fedora AMI, the user name is
ec2-user
orfedora
. - For a RHEL AMI, the user name is
ec2-user
orroot
. - For a SUSE AMI, the user name is
ec2-user
orroot
. - For an Ubuntu AMI, the user name is
ubuntu
. - Otherwise, if
ec2-user
androot
don’t work, check with the AMI provider.
- For Amazon Linux 2 or the Amazon Linux AMI, the user name is
- Under Connection type, select SSH.
- Ensure that Port is 22.
- In the Host Name box, enter
- (Optional) You can configure PuTTY to automatically send ‘keepalive’ data at regular intervals to keep the session active. This is useful to avoid disconnecting from your instance due to session inactivity. In the Category pane, choose Connection, and then enter the required interval in the Seconds between keepalives field. For example, if your session disconnects after 10 minutes of inactivity, enter 180 to configure PuTTY to send keepalive data every 3 minutes.
- In the Category pane, expand Connection, expand SSH, and then choose Auth. Complete the following:
- Choose Browse.
- Select the
.ppk
file that you generated for your key pair, and then choose Open. - (Optional) If you plan to start this session again later, you can save the session information for future use. Choose Session in the Category tree, enter a name for the session in Saved Sessions, and then choose Save.
- Choose 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 dialog box matches the fingerprint that you previously obtained in (Optional) Get the Instance Fingerprint. If these fingerprints don’t match, someone might be attempting a “man-in-the-middle” attack. If they match, continue to the next step.
- Choose Yes. A window opens and you are connected to your instance.
No token or token has expired.
Comments
My spouse and I absolutely love your blog and find many
of your post’s to be just what I’m looking for.
Do you offer guest writers to write content for you
personally? I wouldn’t mind creating a post or elaborating on many of the subjects
you write concerning here. Again, awesome
website!