GithubHelp home page GithubHelp logo

docker-ssh's Introduction

#SSH Daemon (CentOS 7 & Supervisor)

Circle CI

million12/ssh docker image with SSHD running under CentOS 7 and Supervisor.

Usage

to be able to connect user can provide port and password for root user. Please see examples below.

Example:

docker run \
	-d \
	--name ssh \
	-p 10022:22 \
	million12/ssh

if root passoword is not provided image will generate one and it can be retrived from logs

docker logs ssh
[SSHD 09:49:22] root password set to: ota7zohsh0AZu2Ex

Login using that password:

ssh [email protected] -p 10022 
[email protected]'s password: ota7zohsh0AZu2Ex

Environmental Variable

ROOT_PASS = root user password

Custom Password deployment

Example:

docker run \
	-d \
	--name ssh \
	-p 10022:22 \
	--env="ROOT_PASS=my_pass" \
	million12/ssh

Docker troubleshooting

Use docker command to see if all required containers are up and running:

$ docker ps -a

Check online logs of ssh container:

$ docker logs ssh

Attach to running ssh container (to detach the tty without exiting the shell, use the escape sequence Ctrl+p + Ctrl+q):

$ docker attach ssh

Sometimes you might just want to review how things are deployed inside a running container, you can do this by executing a bash shell through docker's exec command:

docker exec -i -t ssh /bin/bash

History of an image and size of layers:

docker history --no-trunc=true million12/ssh | tr -s ' ' | tail -n+2 | awk -F " ago " '{print $2}'

Author

Author: Przemyslaw Ozgo ([email protected])


Sponsored by Typostrap.io - the new prototyping tool for building highly-interactive prototypes of your website or web app. Built on top of TYPO3 Neos CMS and Zurb Foundation framework.

docker-ssh's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.