Without ssh-key pair

create a docker image which runs ssh server :

Get the container name OR hashID :

Then get the container IP :

Run the container :

Run the sshd server in container

With ssh-key pair

Dockerfile :

make-docker-container.sh :

Run the container :

Run the sshd server in container

ssh into the container :