diff --git a/alpine-ssh-client/Dockerfile b/alpine-ssh-client/Dockerfile index 9a8166b86c84aa6a53ea98e9a10e946584f2be27..1695f7a8d8ac151e71211335585b72a1d5c3545c 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