SSH from Mac gives error

0

Executing an SSH commend from Mac terminal with the pathname for the pem file gives an error:

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

asked 2 years ago856 views
2 Answers
1

It maybe seems to be not AWS problem but your mac environment problem.

is '/Userkeypair.pem' really your EC2 instance's identity file?
If so, Try specifying your identity file in your computer with an absolute path.

If you still get an error, write the command you just executed.

answered 2 years ago
1

Make sure you are ssh in the same directory with the correct .pem file. Also change the permissions on the file so that only you (as the file owner) can read it. I ran into the same error when trying to ssh to my website about best stock research websites

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions