From 1cb6435f1be6f70c281eb2e0341e1d8646e184dc Mon Sep 17 00:00:00 2001 From: Alan Nelson <alan.nelson@nebraska.edu> Date: Mon, 13 Jul 2020 17:08:58 +0000 Subject: [PATCH] Generate known_hosts file --- alpine-ssh-client/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/alpine-ssh-client/Dockerfile b/alpine-ssh-client/Dockerfile index 9a8166b..1695f7a 100644 --- a/alpine-ssh-client/Dockerfile +++ b/alpine-ssh-client/Dockerfile @@ -12,4 +12,17 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.schema-version="1.0" \ maintainer="Alan Nelson <alan.nelson@nebraska.edu>" -RUN apk add --no-cache openssh-client ca-certificates rsync \ No newline at end of file +RUN apk add --no-cache openssh-client ca-certificates rsync + +RUN mkdir -p ~/.ssh && chmod 700 ~/.ssh \ + && touch ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts \ + && ssh-keyscan its-lampinteg1.unl.edu\ + its-lampstage1.unl.edu \ + its-lampprod1.unl.edu \ + its-linprod2.unl.edu \ + y1cap.unl.edu \ + passel2.unl.edu \ + buros-apps.unl.edu \ + its-lrc2.unl.edu \ + its-ads-saml-proxy.unl.edu \ + >> ~/.ssh/known_hosts -- GitLab