Amazon Web Services EC2 ssh permission denied (publickey) in Termux
<p><code>ssh -i key.pem ec2-user@dns</code> works fine in my laptop running ubuntu. I found out about Termux in android and I wanted to test if I could connect on using the same process and instance. I opened Google Chrome in android and then created a new Key Pair and also added my IP on the security groups. After that I copied it in the home folder created in Termux and modified <code>chmod 400 androidkey.pem</code>. When I run <code>ssh -i androidkey.pem ec2-user@dns</code> in Termux, it gives me an error saying permission denied (publickey). Is there a way to fix this?</p>