How to access AWS EC2 ubuntu instances using PuTTY.
- Create Instance
- Download and install PuTTY.
- Generate Key using PuTTYgen.
- Connect to the instance using PuTTY.
- Login to AWS Educate Account.
- Go to the services and click on EC2.
- Click on launch Instance.
- Select an Amazone Machine Image as Ubuntu Server 16.04.
- Choose an instance type t2.micro (Which is free).
- Click on Launch.
- Create key pair value if you already have you can choose that exist key pair.
- Give Key Pair Name.
- Download that key pair file (Key pair name + .pen).
- Click on Lounch Instance.
- Instance is Launched.
- Now, Click on View Instances.
- You can edit the name of instances.
- For edit the name of instance click on pen sign which is in Name column.
- For Download PuTTY open link given below.
- Now, Download PuTTY installer.
- After that install PuTTY.
- Open PuTTYgen.
- Load Keypair file which we have download.(keypair.pen)
- Select key Pair Name file which we have downloaded during step 1 process.(.pen File)
- It will show you only private key (.ppk) files for selecting .pen file select All Files *.
- Save Private key (.ppk file).'
- Open PuTTY.
- Select public IPV4 of instance.
- Give that ip as host.
- Save this session data to any session variable.
- Click on Connection -> SSH -> Auth.
- Browse that private key file which we have generated using PuTTYgen.
- Click on Open.
- Select that instance -> Actions -> Insance state -> Terminate.
- Yes,Terminate