How to connect EC2 Linux instances from Windows command or Powershell




After creating and launch instance... just open the command prompt or PowerShell on Windows system and use the below mentioned commands:


 For connecting ec2 instance from command or PowerShell


  • ssh -i [.pem file name or path] ec2-user@ipaddress


(The .pem file is key which you downloaded during create the instance, ec2-user is the username of instance by default and ip address is the public ip address of the instance.


In my case as mentioned below picture. 2022 is the .pem file which is located on Desktop and ec2-user is the default username and 13.127.63.166 is the public IP address.




Hope you guys got that How we connect EC2 instances (Linux) from Windows command or PowerShell
Previous Post Next Post