Skip to content

Moving the ContainerSSH listen option (since 0.4)

In ContainerSSH 0.4 we are introducing a framework to run multiple services within one daemon. In the future we want to add more services like a web-based interface.

To make this change happen we will stop treating the SSH service as special, so we are moving the listen option from the configuration root to sshlisten:

# Deprecated version
listen: 0.0.0.0:2222
# New version
ssh:
  listen: 0.0.0.0:2222

If you use the old option you will receive the following log warning:

You are using the 'listen' option deprecated in ContainerSSH 0.4. Please use the new 'ssh -> listen' option. See https://containerssh.io/deprecations/listen for details.

If you provide both options the new option will take precedence and you will receive the following log message:

You are using the 'listen' option deprecated in ContainerSSH 0.4 as well as the new 'ssh -> listen' option. The new option takes precedence. Please see https://containerssh.io/deprecations/listen for details.