-1

Like many others, I've been excited to use bash on Windows 10. I was able to get it installed fine. However, I'm having trouble SSH into instances. I've followed another post here on superuser. But am not able to get it to work. Do I need to specify something other than this type of command:

ssh -i /mnt/c/Users/uname/Desktop/key.pem ubuntu@ec2-xx-xxx-xx-xx.compute-1.amazonaws.com

I get this error:

 Warning: Identity file key.pem not accessible: No such file or directory.

I have double-checked and that path to my key.pem is correct.

Bachzen
  • 1
  • 2

2 Answers2

2

This may be a little simplistic but have you tried a program called Putty?

It seems to be a little better than inbuilt windows ssh

0
ssh -i /mnt/c/Users/uname/Desktop/key.pem ubuntu@ec2-xx-xxx-xx-xx.compute-1.amazonaws.com

When I understand right you are trying to connect from bash on Ubuntu on windows to your amazon ubuntu server.

  1. I am not using putty with pem files but the standard way to provide login without password is an rsa key (see at digitalocean Tutorials:- How To Set Up SSH Keys)

  2. The error message points out the pem file are not accessible. So the first steps are to make sure the file is there (or you can copy it to your home directory for testing purposes) and is accessible.

mic84
  • 2,413