Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rastasheep/ubuntu-sshd
Dockerized Ubuntu SSH service
https://github.com/rastasheep/ubuntu-sshd
docker ssh ubuntu
Last synced: 15 days ago
JSON representation
Dockerized Ubuntu SSH service
- Host: GitHub
- URL: https://github.com/rastasheep/ubuntu-sshd
- Owner: rastasheep
- Created: 2014-07-04T10:21:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T03:57:47.000Z (over 3 years ago)
- Last Synced: 2024-07-03T09:21:24.613Z (4 months ago)
- Topics: docker, ssh, ubuntu
- Language: Shell
- Homepage: https://registry.hub.docker.com/u/rastasheep/ubuntu-sshd/
- Size: 17.6 KB
- Stars: 257
- Watchers: 11
- Forks: 191
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ubuntu-sshd
Dockerized SSH service, built on top of [official Ubuntu](https://registry.hub.docker.com/_/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:
- [Precise (12.04) minimal](http://packages.ubuntu.com/precise/ubuntu-minimal)
- [Quantal (12.10) minimal](http://packages.ubuntu.com/quantal/ubuntu-minimal)
- [Raring (13.04) minimal](http://packages.ubuntu.com/raring/ubuntu-minimal)
- [Saucy (13.10) minimal](http://packages.ubuntu.com/saucy/ubuntu-minimal)
- [Trusty (14.04) minimal](http://packages.ubuntu.com/trusty/ubuntu-minimal)
- [Xenial (16.04) minimal](http://packages.ubuntu.com/xenial/ubuntu-minimal)
- [Bionic (18.04) minimal](http://packages.ubuntu.com/bionic/ubuntu-minimal)Image specific:
- [openssh-server](https://help.ubuntu.com/community/SSH/OpenSSH/Configuring)Config:
- `PermitRootLogin yes`
- `UsePAM no`
- exposed port 22
- default command: `/usr/sbin/sshd -D`
- root password: `root`## Run example
```bash
$ 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:```bash
$ 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](https://github.com/rastasheep/ubuntu-sshd/issues) repo, which is the source for this image.