https://github.com/takeyamajp/docker-debian-sshd
Debian image with SSH & SFTP
https://github.com/takeyamajp/docker-debian-sshd
debian docker sftp ssh
Last synced: about 1 year ago
JSON representation
Debian image with SSH & SFTP
- Host: GitHub
- URL: https://github.com/takeyamajp/docker-debian-sshd
- Owner: takeyamajp
- License: gpl-3.0
- Created: 2020-01-12T05:16:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T01:58:33.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T00:38:03.649Z (about 1 year ago)
- Topics: debian, docker, sftp, ssh
- Language: Dockerfile
- Homepage:
- Size: 62.5 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# debian-sshd
Star this repository if it is useful for you.
[](https://hub.docker.com/r/takeyamajp/debian-sshd/)
[](https://hub.docker.com/r/takeyamajp/debian-sshd/)
[](https://github.com/takeyamajp/docker-debian-sshd/blob/master/LICENSE)
## Supported tags and respective Dockerfile links
- [`latest` `debian12` `bookworm`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian12/Dockerfile), [`bookworm-slim`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian12/slim/Dockerfile)
- [`debian11` `bullseye`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian11/Dockerfile), [`bullseye-slim`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian11/slim/Dockerfile)
- [`debian10` `buster`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian10/Dockerfile), [`buster-slim`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian10/slim/Dockerfile)
- [`debian9` `stretch`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian9/Dockerfile), [`stretch-slim`](https://github.com/takeyamajp/docker-debian-sshd/blob/master/debian9/slim/Dockerfile)
### Supported architectures: ([`more info`](https://github.com/docker-library/official-images#architectures-other-than-amd64))
`amd64`, `arm64(for Raspberry Pi)`
## Image summary
FROM debian:bookworm
MAINTAINER "Hiroki Takeyama"
ENV TZ Asia/Tokyo
ENV ROOT_PASSWORD root
EXPOSE 22
## How to use
This container can be accessed by SSH and SFTP clients.
docker run -d --name debian-sshd \
-e TZ=Asia/Tokyo \
-e ROOT_PASSWORD=root \
-p 8022:22 \
takeyamajp/debian-sshd
You can add extra ports and volumes as follows if you want.
docker run -d --name debian-sshd \
-e TZ=Asia/Tokyo \
-e ROOT_PASSWORD=root \
-p 8022:22 \
-p 8080:80 \
-v /my/own/datadir:/var/www/html \
takeyamajp/debian-sshd
SCP command can be used for transferring files.
scp -P 8022 -r /my/own/apache2.conf root@localhost:/etc/apache2/apache2.conf
## Time zone
You can use any time zone such as America/Chicago that can be used in Debian.
See below for zones.
https://www.unicode.org/cldr/charts/latest/verify/zones/en.html
## Logging
This container logs the beginning, authentication, and termination of each connection.
Use the following command to view the logs in real time.
docker logs -f debian-sshd