From 192cba106da129a074fa18b4d5cd552044071064 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Fri, 21 Nov 2014 12:24:31 -0800 Subject: [PATCH] Dockerfile: Add default SSH config * Add a default ssh config that won't blow up due to empty/missing known_hosts file. * Those concerned about security are expected to fork the repo and update the Dockerfile to include trusted values. --- Dockerfile | 1 + ssh_config | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 ssh_config diff --git a/Dockerfile b/Dockerfile index 8a9aa36..7580ac1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN chmod 755 /usr/local/bin/* # All builds will be done by user aosp RUN useradd --create-home aosp ADD gitconfig /home/aosp/.gitconfig +ADD ssh_config /home/aosp/.ssh/config RUN chown aosp:aosp /home/aosp/.gitconfig # The persistent data will be in these two directories, everything else is diff --git a/ssh_config b/ssh_config new file mode 100644 index 0000000..fccf3c2 --- /dev/null +++ b/ssh_config @@ -0,0 +1,4 @@ +# Somewhat insecure, fork and override as needed. +Host * + #IdentityFile /root/.ssh/id_rsa + StrictHostKeyChecking no