Git Product home page Git Product logo

docker-openssh-host-keys's Introduction

Docker OpenSSH Host Keys

Generates SSH host keys in a Docker container and copies them to a mounted directory.

Usage

This command will generate and copy a set of SSH host keys to the /path/to/target directory:

docker run \
  --rm \
  -e SSH_HOST_KEYS_OWNER=root \
  -e SSH_HOST_KEYS_GROUP=root \
  -e SSH_HOST_KEYS_MODE=644 \
  -e SSH_HOST_KEYS_DIRECTORY_MODE=700 \
  -v /path/to/target:/target \
  mediacomem/openssh-host-keys

Configuration

The generated SSH host keys can be customized through these environment variables. All variables are optional.

Variable Default value Description
SSH_HOST_KEYS_OWNER root User or UID who will own the generated SSH host keys.
SSH_HOST_KEYS_GROUP root Group or GID that will own the generated SSH host keys.
SSH_HOST_KEYS_MODE 644 File system permissions of the generated SSH host keys.
SSH_HOST_KEYS_DIRECTORY_MODE - Optional file system permissions that will be set on the target directory.

docker-openssh-host-keys's People

Contributors

alphahydrae avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alphahydrae

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.