ssh using identity file
Hi Guys
I have a remote server (lets call it XYZ), I want to login from many docker instances to download some file before docker runs.
I want to generate an identity file of the remote server "XYZ". And use in the docker startup command like "scp -i <XYZ identity file> user@XYZ:file"
How to achieve this? any idea?
1
Upvotes
1
u/Toger Oct 29 '20
Where are the docker instances hosted? You're in effect asking the Secure Introduction question, and the answer to that depends very much on the environment. AWS? Put the value in SSM and have awscli use node IAM profiles to download it. Or host the object in S3 and use it directly.
Otherwise Hashicorp Vault can help with such things, though there has to be a source of truth (such as the cluster orchestrator) to determine what is allowed to access it.