Hi all! Having a bit of an ssh issue, basically I'm running the clearml k8s-glue agent in a pod in k8s, which happily spins up new pods on a managed node group I've set up on EKS. However I can't seem to connect via ssh to my git repo when I execute a task. I'm running the following as extra_docker_shell_script
when the pod is span up:
extra_docker_shell_script: ["eval $(ssh-agent)", "ssh-add /etc/secret-volume/ssh-privatekey", "ssh-add -l", "ssh -T git@github.com"]
where my ssh-privatekey
is a mounted kubernetes secret which I set up using the instructions here https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys
The logs in the pod after running the shell script give me :
Identity added: /etc/secret-volume/ssh-privatekey 256 SHA256:pMhf/WDeaADdsq+UH/Nir (ED25519) Host key verification failed.
Basically telling me the ssh agent adds the key successfully but then is failing to connect to mailto:git@github.com
Anyone have any clue what's happening? The task then proceeds to fail due to not being able to clone the repo