Skip to content

Instantly share code, notes, and snippets.

@mosluce
Last active February 6, 2018 09:05
Show Gist options
  • Save mosluce/a81f9652545ec8a0e90826f8bd0c7663 to your computer and use it in GitHub Desktop.
Save mosluce/a81f9652545ec8a0e90826f8bd0c7663 to your computer and use it in GitHub Desktop.
ssh keygen
FROM alpine
RUN apk add --no-cache openssh-client
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
VOLUME [ "/root/.ssh" ]
ENTRYPOINT [ "./entrypoint.sh" ]
#!/bin/sh
ssh-keygen -q -f /root/.ssh/id_rsa -P ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment