Created
March 17, 2018 12:05
-
-
Save vtombesi/449425d3e96a48bc04ff04c6885908f8 to your computer and use it in GitHub Desktop.
A Docker keygen container for generating ssh keys in the current directory (keys/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf "FROM ubuntu:latest \nRUN apt-get update; apt-get -y install openssh-client \nCMD rm /keys/id_rsa*; ssh-keygen -q -t rsa -N '' -f /keys/id_rsa" > Dockerfile | |
docker build -t keygen-container . | |
docker run -v $(pwd)/keys:/keys keygen-container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment