How to connect windows machine to EC2 instance using SSH
You can connect to Amazon EC2 instances created from most Windows Amazon Machine Images (AMIs) using SSH(Secure Shell). SSH uses the Secure shell to connect to and use your instance like you use a computer sitting in front of you (local computer). It is available on most editions of Windows.
Prerequisite for connecting window machine to EC2 instance using SSH
While Creating an EC2 instance you should save your .pem key in your local machine.
Step to connect EC2 with windows machine using SSH
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, select Instances. Select the instance and then choose Connect.
On the Connect to instance page, choose the SSH client tab.
-
Open Windows PowerShell on your windows machine.
-
Once PowerShell window launches go to the location where you have saved your .pem file using cd command.
Now go to the below screen and copy the command.
ssh -i "Sumitkey.pem" (this is my private key name)
ubuntu@ec2-13-53-140-75.eu-north-1.compute.amazonaws.com (this is address of my instance)
Go to the PowerShell screen on your local machine and paste the copied code and press enter after that you will get 1 message stating "Are you want to continue connecting?" type yes and enter again and your windows machine will successfully connect with your EC2 instance.
Thank you all for giving your valuable time for reading. Please feel free to give feedback or remarks, it will be highly appreciated.
Follow me on LinkedIn:linkedin.com/in/sumit-warghat-223b9276
-