takeyamajp / docker-rocky-sshd

Rocky Linux image with SSH & SFTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rocky-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 rockylinux:9  
MAINTAINER "Hiroki Takeyama"

ENV TIMEZONE 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 rocky-sshd \  
       -e TIMEZONE=Asia/Tokyo \  
       -e ROOT_PASSWORD=root \  
       -p 8022:22 \  
       takeyamajp/rocky-sshd

You can add extra ports and volumes as follows if you want.

docker run -d --name rocky-sshd \  
       -e TIMEZONE=Asia/Tokyo \  
       -e ROOT_PASSWORD=root \  
       -p 8022:22 \  
       -p 8080:80 \  
       -v /my/own/datadir:/var/www/html \  
       takeyamajp/rocky-sshd

SCP command can be used for transferring files.

scp -P 8022 -r /my/own/httpd.conf root@localhost:/etc/httpd/conf/httpd.conf

Time zone

You can use any time zone such as America/Chicago that can be used in Rocky Linux.

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 rocky-sshd

About

Rocky Linux image with SSH & SFTP

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%