Public Repository

Last pushed: a year ago
Short Description
SSH Server Repository
Full Description

This repository contains SSH Server container based on a Docker Ubuntu image.

To build the image, run in the project directory the command:
docker build -t <name-image> .

To run the image with the default password for root (password: 123), run the command:
docker run -p <host-port>:22 -d <id-image>
To run the image with a specified password, run the command:
docker run -p <host-port>:22 -d <id-image> startSSH.sh <password>

To login to Docker container through SSH, type in the shell:
ssh root@<host-address> -p <host-port>
where <host-port> has been assigned with run command.

For debug run the command:
docker run -p <host-port>:22 -it <id-image> bash
startSSH.sh &
you may add password argument with startSSH.sh

Source code:
./Dockerfile http://bit.ly/1rjOnX8
./startSSH.sh http://bit.ly/1U6Ebfj

Docker Pull Command
Owner
giancarlopiccolo

Comments (0)