Skip to content

takeyamajp/docker-debian-sshd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debian-sshd

Star this repository if it is useful for you.
Docker Stars Docker Pulls license

Supported tags and respective Dockerfile links

Supported architectures: (more info)

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

About

Debian image with SSH & SFTP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published