Sign inSign up

panenka76/sftp

By panenka76

•Updated over 10 years ago

Docker image for running an OpenSSH SFTP server on Ubuntu 16.04.

Image
0

576

panenka76/sftp repository overview

⁠Description

Docker image for running an OpenSSH SFTP server on Ubuntu 16.04.

⁠Features

  • run SSH daemon on startup and log to stdout instead of syslog
  • chroot all sftp users into their homedir
  • by default disable root login and only allow authentication by key.
  • create users and import authorized_keys

⁠Usage

At startup⁠, if any additional config files are available at /opt/ssh/config, they will be used to override the defaults⁠. It would generally be a good idea to include your HostKeys here such that when your container restarts or is scheduled on a different host, it doesn't change its hostkeys.

For each file in /opt/ssh/authorized_keys a user will be created with the name as the file. The contents of the file will be considered as the authorized_keys for this user. The user will be automatically restricted to sftp only, so has no shell access.

/opt
  /ssh
    /authorized_keys
      user01
      user02

For an example see the tests⁠.

Tag summary

Content type

Image

Digest

Size

89.6 MB

Last updated

over 10 years ago

docker pull panenka76/sftp