-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
  • make sure you can login using a password to make sure the ssh-server is running properly. when succeeded; try logging in with putty, but use your key this time and post some screenshots of results getting there. – Master Azazel Nov 17 '16 at 13:55

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

  • 1
    yes, have used Putty many times. The reason I like linux is the ability to shell script, and having scp in that code is very important – Bachzen Oct 08 '16 at 01:32
  • 1
    Welcome to Super User! This is really a comment and **not** an answer to the original question. You can always comment on your own posts, and once you have sufficient [reputation](https://superuser.com/help/whats-reputation) you will be able to [comment on any post](https://superuser.com/help/privileges/comment). Please read [Why do I need 50 reputation to comment? What can I do instead?](https://meta.stackexchange.com/a/214174) – DavidPostill Oct 10 '16 at 13:36
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,363
  • 2
  • 21
  • 17