Git Product home page Git Product logo

ubuntu-sshd's Introduction

ubuntu-sshd

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

Image tags

  • antarasi/ubuntu-sshd:14.04 (trusty)
  • antarasi/ubuntu-sshd:16.04 (xenial)
  • antarasi/ubuntu-sshd:18.04 (bionic)
  • antarasi/ubuntu-sshd:20.04 (focal)
  • antarasi/ubuntu-sshd:22.04 (jammy)

Installed packages

Base:

Image specific:

Config:

  • exposed port 22
  • default command: /usr/sbin/sshd -D
  • root user password: root
  • ubuntu user password: ubuntu
  • root login not permitted (login as ubuntu and type su - to access root account)

Run example

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

$ ssh ubuntu@localhost -p 49154
  Password: ubuntu
$ ubuntu@ubuntu-sshd:~$ su -
  Password: root
$ root@ubuntu-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 ubuntu-sshd passwd
  • Disallow password login for ubuntu user, use SSH keys instead:
# copy local ssh public key to server authorized keys store
  $ ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@localhost -p 49154
    Password: ubuntu

# delete ubuntu user password
  $ docker exec ubuntu-sshd passwd -d ubuntu

# password is not required now
  $ ssh ubuntu@localhost -p 49154

Issues

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

Attribution

The original author: rastasheep

ubuntu-sshd's People

Contributors

aklinkert avatar antarasi avatar ngaro avatar rastasheep 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.