Sign inSign up

nlss/sshd

By nlss

•Updated over 6 years ago

Dropbear powered SSH server

Image
0

948

nlss/sshd repository overview

⁠Alpine SSHD (Dropbear)

This is a small Alpine-based container using openssh-sftp-server⁠ and Dropbear SSH⁠.

The intended usage is to (temporary) access/modify shared volumes by SSH/SFTP.

This is standalone fork, of now abandoned project sjourdan/alpine-sshd⁠.

⁠Usage

It takes 2 variables: USER and PASSWORD, both in cleartext. Redirect the TCP/22 port to whatever port you want.

docker run -d \
-p 2222:22 \
-e USER=myusername \
-e PASSWORD=mypassword \
nlss/sshd

Then you can use this container to SFTP and/or SSH:

sftp -P2222 [email protected]
[email protected]'s password:
Connected to 192.168.99.100.
sftp> pwd
Remote working directory: /home/user1
sftp>

⁠Dropbear Notes

Options used in this container:

-R              Create hostkeys as required
-F              Don't fork into background
-E              Log to stderr rather than syslog
-m              Don't display the motd on login
-w              Disallow root logins
-g              Disable password logins for root

⁠Build

$ make build

⁠TODO

  • SSH key authentication
  • Easier user management
  • Proper tagging/versioning

Tag summary

Content type

Image

Digest

Size

8.7 MB

Last updated

over 6 years ago

docker pull nlss/sshd