I built my own image for using Git storage with ssh by doing what the docs said
Copy code
FROM prefecthq/prefect:latest
RUN apt update && apt install -y openssh-client
However now I get this every run
Failed to load and execute Flow's environment: HangupException('Host key verification failed.\r')
I created a known_hosts file by adding this to the Dockerfile but it didn't help.
Copy code
RUN mkdir ~/.ssh && ssh-keyscan -t rsa <http://github.com|github.com> >> ~/.ssh/known_hosts
Any thoughts?
👀 1
a
Anna Geller
11/03/2021, 2:54 PM
according to the docs: SSH keys should be mounted to the /root/.ssh directory. It looks like you’re mounting them to the working directory, which I think by default in Prefect images is /opt/prefect/
we still get that error though, so there's either something wrong with the keys we're loading or something else about the job's ssh setup
a
Anna Geller
11/03/2021, 3:00 PM
yeah, some clients require SSH keys to be in a specific format. I’m no SSH expert, but you could look around what type of key is required by the openssh-client package
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.