I'm connecting from my Android handset to my NAS, using SSH. The private key was generated on my PC and then placed in the sd card folder of the phone. So I'm using the identity flag to tell ssh where to find the key file, so
ssh -i /storage/sdcard/key -p 1000 email@example.com
Every time I try to connect I get the message that "the authenticity of host can't be established". So I am asked whether I want to continue connecting and I have to manually say "yes" every time.
For some the host cannot be added to known_hosts and so I get asked every time to confirm manually. I tried to find ".ssh" on my device but I can't find it.
Failed to add the host to the list of known hosts (/data/.ssh/known_hosts)
Can someone please help?
EDIT: I have manually created /data/.ssh/known_hosts but the problem persists