Thursday, March 17, 2022

[SOLVED] SSH to EC2 linux instance from Windows

Issue

I'm setting up a "data analysis on the cloud" class and most of the students will probably be using Windows.

The students will have to set up EC2 Ubuntu instances and connect to them.

What is the easiest way to set up SSH for Windows XP-7?

I've tried PuTTY but Puttygen can only convert the public key to putty format if I manually add newlines in a text editor. This is too involved for the class of 80.

I've tried OpenSSH but I can't seem to find the correct permissions for the public key file. On Mac OS/Linux it's just chmod 600.

Is there a decent SSH client that supports Amazon's key format that I can set up easily?


Solution

If anybody's looking for windows 10 solution.
In Windows 10, you can use powershell. Use above command.

ssh -i \..\location-to-pem-file.pem [email protected]

If ssh is not supported in your windows 10 machine, follow this url for installation.
I used it and suggested the same.



Answered By - HV Sharma
Answer Checked By - Willingham (WPSolving Volunteer)