Configuring ContainerSSH

Before you can run ContainerSSH, you will need to create a configuration file. The minimal configuration file looks like this:

ssh:
  hostkeys:
    # Generate a host key with openssl genrsa
    - /path/to/your/host/key
auth:
  # See auth server below
  url: http://your-auth-server/
  password: true # Perform password authentication
  pubkey: false # Perform public key authentication

The config file must end in .yml, .yaml, or .json. You can dump the entire configuration file using ./containerssh --dump-config

Note

Parts of the configuration can be provided dynamically based on the username using a configserver

Note

In order to actually use ContainerSSH you will also need to provide a backend configuration either via this file or via the configserver.