I need to store keys in a docker container so it can login to remote hosts without prompts. This is proving difficult, and I’m not sure where I’m goofing.
In a sane envirnoment, keys are stored in the users ~/.ssh directory. This doesn’t seem to fully apply to the discourse-docker environment. I’ve tried manually copying keys authorized_keys, but this isn’t working. Additionally, I’ve run a:
within the container for the host’s IP, which succeeds. the issue is that when I remove the known_hosts file, it will prompt (yes/no) as usual; however when I remove the authorized_keys, rsa_id files, it will still login as if the key still exists.
this leads me to reason some hidden directory is at play which stores the keyfiles. is this correct? need a solution here.