A docker container with an apache2 allow a (really) simple SSH connection (via password). Based on the excellent baseimage-docker from phusion
Build the container :
docker build -t maxenceg2m/apache2 .
Run the container :
sudo docker run -d \
--name="apache2" \
-p 80:80 \
-p 443:443 \
maxenceg2m/apache2
To connect via ssh, first get the IP of the container and just do an SSH connection.
sudo docker inspect apache2 | grep IPAddress
ssh root@<IPAddress> # Password is 'root'
Change the root password or disable it in the Dockerfile.