amazon web services - EC2 - chmod: cannot access ‘mypemfile.pem’: No such file or directory -


i download pem file while launching t2.small instance. when try connect via ssh no such file in directory. sure pem file in directory.

    $ ls       mypemfile.pem     $ chmod 400 mypemfile.pem       chmod: cannot access ‘mypemfile.pem’: no such file or directory     $ ssh -i "mypemfile.pem" root@x.x.x.xx       warning: identity file mypemfile.pem not accessible: no such file or directory.       permission denied (publickey). 

how track issues? , solutions?

note: created instance ami image shared account.

for sure problem because there no "mypemfile.pem" file.

recheck availability of file, if file available try rename or make copy of , try newly created file.

hope helps..


Comments