3

I am trying to use Cygwin to connect to my Amazon server instance


I am new to this

  • Currently i have a USA.pem file located at C:\Users\Vinay\Desktop\Devrath
  • I have installed Cygwin
  • I have used this reference to use cmd prompt with cygwin

now i navigated to the location from command prompt

C:\Users\Vinay\Desktop\Devrath>

How can i get access to my amazon server ..... what steps i need to follow

In linux terminal i used to give like this ::

ssh -i ~/Downloads/usa.pem ubuntu@11.213.92.234
Devrath
  • 149
  • 1
  • 1
  • 5

1 Answers1

9

First, make sure you have an SSH client installed. Open the Cygwin setup file (if you don't have it you can get it from http://cygwin.com/install.html).

Click next and leave all options default until you get to "Choose A Download Source". Make sure "Install from Internet" is selected and click next.

You can leave the options as they are on the next 3 screens, the defaults are safe and you shouldn't need to change them. Select a mirror to use and click next, any one should be fine.

From the Select Packages window type 'openssh' in the search box. Click the + to the left of "Net". Click the text that says "Skip" once and it will change and say a version number. Click next at the bottom.

Make sure that you leave the checkbox to get the required files selected and click next. The files will be installed and then you can open the Cygwin terminal again and try the SSH command.

ssh -i /cygdrive/c/Users/Vinay/Desktop/Devrath/USA.pem user@host

Should work. If it doesn't, please run:

ssh -vv -i /cygdrive/c/Users/Vinay/Desktop/Devrath/USA.pem user@host

And paste the output in a comment.

gbe0
  • 365
  • 1
  • 4