GithubHelp home page GithubHelp logo

sylr / ubuntu-sshd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rastasheep/ubuntu-sshd

0.0 3.0 0.0 17 KB

Dockerized Ubuntu SSH service

Home Page: https://registry.hub.docker.com/u/rastasheep/ubuntu-sshd/

Dockerfile 96.68% Shell 3.32%

ubuntu-sshd's Introduction

ubuntu-sshd

Dockerized SSH service, built on top of official Ubuntu images.

Image tags

  • rastasheep/ubuntu-sshd:12.04 (precise)
  • rastasheep/ubuntu-sshd:12.10 (quantal)
  • rastasheep/ubuntu-sshd:13.04 (raring)
  • rastasheep/ubuntu-sshd:13.10 (saucy)
  • rastasheep/ubuntu-sshd:14.04 (trusty)
  • rastasheep/ubuntu-sshd:16.04 (xenial)
  • rastasheep/ubuntu-sshd:18.04 (bionic)

Installed packages

Base:

Image specific:

Config:

  • PermitRootLogin yes
  • UsePAM no
  • exposed port 22
  • default command: /usr/sbin/sshd -D
  • root password: root

Run example

$ sudo docker run -d -P --name test_sshd rastasheep/ubuntu-sshd:14.04
$ sudo docker port test_sshd 22
  0.0.0.0:49154

$ ssh root@localhost -p 49154
# The password is `root`
root@test_sshd $

Security

If you are making the container accessible from the internet you'll probably want to secure it bit. You can do one of the following two things after launching the container:

  • Change the root password: docker exec -ti test_sshd passwd
  • Don't allow passwords at all, use keys instead:
$ docker exec test_sshd passwd -d root
$ docker cp file_on_host_with_allowed_public_keys test_sshd:/root/.ssh/authorized_keys
$ docker exec test_sshd chown root:root /root/.ssh/authorized_keys

Issues

If you run into any problems with this image, please check (and potentially file new) issues on the rastasheep/ubuntu-sshd repo, which is the source for this image.

ubuntu-sshd's People

Contributors

rastasheep avatar ngaro avatar aklinkert avatar sylr avatar

Watchers

 avatar James Cloos 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.