am not able to ssh to Amazon AWS from my kali nethunter device nexus 6p I get this error public key denied.
However I can easily ssh from my desktop without any issues, computer that has kali linux directly installed.
Here is the error.
──(rootkali)-[/sdcard/Download] └─# ssh -i kali-cloud.pem ec2user@ec2-x-x-x-x.us-east-2.compute.amazonaws.com @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ Permissions 0660 for 'kali-cloud.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "kali-cloud.pem": bad permissions ec2user@ec2-x-x -x.us-east-2.compute.amazonaws.com: Permission denied (publickey).
Kindly suggest.
Regards Skorp