Tuesday 20 June 2017

Amazon EC2: Authorizing Inbound Traffic for Your Instances

ADDING A RULE FOR INBOUND SSH TRAFFIC TO A LINUX INSTANCE

  • In the navigation pane of the Amazon EC2 console, click Instances.
    Select your instance and look at the Description tab; Security groups lists
    the security groups that are associated with the instance. Click view rules to
    display a list of the rules that are in effect for the instance.






  • In the navigation pane, click Security Groups. Select one of the security groups 
  • associated with your instance.
  • In the details pane, on the Inbound tab, click Edit. In the dialog,
    click Add Rule, and then select SSH from the Type list.






  • In the Source field, specify the public IP address of your computer, in CIDR notation.
    For example, if your IP address is 203.0.113.25, specify 203.0.113.25/32 to list this single
    IP address in CIDR notation. If your company allocates addresses from a range, specify the entire
    range, such as 203.0.113.0/24.
     Use the url  http://checkip.amazonaws.com/ to find you IP Address


Click Save.


Amazon EC2: Converting Your Private Key Using PuTTYgen

Amazon EC2: Converting Your Private Key Using PuTTYgen

PuTTY does not natively support the private key format (.pem) 
generated by Amazon EC2. 
PuTTY has a tool named PuTTYgen, which can convert keys
 to the required PuTTY format (.ppk). 
You must convert your private key into this format (.ppk) before attempting to connect 
to your instance 
using PuTTY.


To convert your private key

  • Start PuTTYgen (for example, from the Start menu, click All Programs > 
  • PuTTY > PuTTYgen).
  • Under Type of key to generate, select SSH-2 RSA.






















Click Load. By default, PuTTYgen displays only files with the extension .ppk
  • To locate your .pem file, select the option to display files of all types.











  • Click OK
















  • Click Save private key to save the key in the format that PuTTY can use. PuTTYgen displays a 
  • warning about saving the key without a passphrase. Click Yes.






  • Specify the same name for the key that you used for the key pair (for example, my-key-pair). 
  • PuTTY automatically adds the .ppk file extension.









  • Your private key is now in the correct format for use with PuTTY. 
  • You can now connect to your instance using PuTTY's SSH client.

Amazon Elastic EC2: Steps to launch an Amazon EC2 Instance

Amazon Elastic EC2: Steps to launch an Amazon EC2 Instance

This thread discusses the steps to launch a Linux instance using AWS Management Console.
  • To launch an Amazon EC2 instance, open the Amazon EC2 console using the 
  • URL https://console.aws.amazon.com/ec2
  • This will take you the following page.













Click on Launch Instance
  • Select The Amazon Machine Image (AMI).  Select the 64 bit Amazon Linux AMI. Marked









  • Select t1.micro from the instance type page. Click on Next: Configure Instance Details. 
  • This will navigate you to the "Configure Instance Details" Page








  • Click on Review and Launch.









  • Select "Make General Purpose SSD the default boot volume for 
all instances from the console going forward " as the option.












  • Click on Edit Security Groups from the Review Instance Launch screen








  • Select an existing security group. Select the check box and click on Review and Launch








  • Click on Launch








  • Choose and Existing Key pair if the key pair exists OR create another pair of key.
  • Click on Launch Instance
On the Resource screen, click on Running Instance



No comments:

Post a Comment