5.6 Do not run ssh within containers

Information

http://blog.docker.com/2014/06/why-you-dont-need-to-run-sshd-in-docker/

Solution

Uninstall SSH server from the container and use nsenter or any other commands such as docker exec or docker attach to interact with the container instance.
docker exec --interactive --tty $INSTANCE_ID sh
OR
docker attach $INSTANCE_ID
Impact-
None.
Default Value-
By default, SSH server is not running inside the container. Only one process per container is allowed.

See Also

https://workbench.cisecurity.org/files/516

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7b.

Plugin: Unix

Control ID: c6c1ae21e454781f6ac46ef54971a79038d8fbeeb71f31ba7f816049c1c5eaf3