Sign inSign up

chamunks/alpine-openssh

By chamunks

Updated about 8 years ago

OpenSSH-Server on the Alpine ultra thin base docker image. Security & Simplicity.

Image
1

897

chamunks/alpine-openssh repository overview

OpenSSH-Server Container

Complexity is the enemy of security This container is intended to just be a simple probably poorly made OpenSSH-Server running on the ultra minimalistic Alpine Linux Container for the sake of sticking to docker standards and application separation. Containers are not intended to have more than one process/service running at a time for security purposes I've isolated this container as thinly as possible to help keep outward facing processes separate from internal ones.

Why wouldn't I just include SSH in my container?

This seems like the logical thing to do but in reality you now open your container to more than one attack vector so now you need to consider security of more than one process for your container. This requires management of user accounts and ssh keypairs and if you're really lazy usernames and passwords.

But this makes it really annoying and complex to deploy! Yes it can but with docker-compose.yml files you can easily launch a complex interdependent application with one command docker-compose up! You can easily create your own YAML parsed docker-compose.yml yourself or you can use services like this one to create your own complex application. One day I may include an example WordPress deployment or something.

Why not separate commands in your Dockerfile by using the RUN directive for each command rather than separating commands simply with line breaks

Every RUN directive creates another layer in your container which makes your container much larger than it needs to be. Meaning if you do any package or archive cleanup after you've installed a bunch of things you're not actually saving any space.

Current Status

Incomplete but mostly-functional.

ToDo

  • Inject AuthorizedKeys
  • Inject more secure sshd_config
  • Disallow Password Auth
  • Maybe don't run as root.

Health & Statistics

Repository Health

GitHub issues out of GitHub total issues

Container Build Health

Docker Pulls Docker Stars Docker Build Status

Repository Statistics/Info

GitHub license

GitHub forks GitHub stars

Tag summary

Content type

Image

Digest

sha256:066926731

Size

6.8 MB

Last updated

about 8 years ago

docker pull chamunks/alpine-openssh