Create Dockerfile.sshd that adds openssh-server so the container can accept SSH connections, and run as a detached container.
Host keys needs to be deleted and it should also allow to load them as well as user .ssh directory via a volume. If not provided, it should automatically generate the host keys.
Create
Dockerfile.sshdthat addsopenssh-serverso the container can accept SSH connections, and run as a detached container.Host keys needs to be deleted and it should also allow to load them as well as user
.sshdirectory via a volume. If not provided, it should automatically generate the host keys.