https://github.com/takeyamajp/docker-ubuntu-sshd
Ubuntu image with SSH & SFTP
https://github.com/takeyamajp/docker-ubuntu-sshd
docker sftp ssh ubuntu
Last synced: about 1 year ago
JSON representation
Ubuntu image with SSH & SFTP
- Host: GitHub
- URL: https://github.com/takeyamajp/docker-ubuntu-sshd
- Owner: takeyamajp
- License: gpl-3.0
- Created: 2019-12-28T23:36:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T23:23:33.000Z (over 3 years ago)
- Last Synced: 2025-03-24T00:38:04.833Z (over 1 year ago)
- Topics: docker, sftp, ssh, ubuntu
- Language: Dockerfile
- Homepage:
- Size: 91.8 KB
- Stars: 57
- Watchers: 2
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ubuntu-sshd
Star this repository if it is useful for you.
[](https://hub.docker.com/r/takeyamajp/ubuntu-sshd/)
[](https://hub.docker.com/r/takeyamajp/ubuntu-sshd/)
[](https://github.com/takeyamajp/docker-ubuntu-sshd/blob/master/LICENSE)
## Supported tags and respective Dockerfile links
- [`latest`, `ubuntu22.04`](https://github.com/takeyamajp/docker-ubuntu-sshd/blob/master/ubuntu22.04/Dockerfile)
- [`ubuntu20.04`](https://github.com/takeyamajp/docker-ubuntu-sshd/blob/master/ubuntu20.04/Dockerfile)
- [`ubuntu18.04`](https://github.com/takeyamajp/docker-ubuntu-sshd/blob/master/ubuntu18.04/Dockerfile)
- [`ubuntu16.04`](https://github.com/takeyamajp/docker-ubuntu-sshd/blob/master/ubuntu16.04/Dockerfile)
### Supported architectures: ([`more info`](https://github.com/docker-library/official-images#architectures-other-than-amd64))
`amd64`, `arm64(for Raspberry Pi)`
## Image summary
FROM ubuntu:22.04
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 ubuntu-sshd \
-e TZ=Asia/Tokyo \
-e ROOT_PASSWORD=root \
-p 8022:22 \
takeyamajp/ubuntu-sshd
You can add extra ports and volumes as follows if you want.
docker run -d --name ubuntu-sshd \
-e TZ=Asia/Tokyo \
-e ROOT_PASSWORD=root \
-p 8022:22 \
-p 8080:80 \
-v /my/own/datadir:/var/www/html \
takeyamajp/ubuntu-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 Ubuntu.
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 ubuntu-sshd