Sign inSign up

peerapach/openssh-debian

By peerapach

•Updated over 3 years ago

debian linux sandboxed environment that allows ssh access

Image
0

279

peerapach/openssh-debian repository overview

⁠inspired by linuxserver/openssh-server - https://github.com/linuxserver/docker-openssh-server⁠

openssh-debian is a debian linux sandboxed environment that allows ssh access.

Usage Here are some example snippets to help you get started creating a container.

⁠Use by public key by env
docker run -d \
  --name=openssh-server \
  --hostname=debian `#optional` \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Bangkok \
  -e PUBLIC_KEY=yourpublickey `#optional` \
  -e SUDO_ACCESS=false `#optional` \
  -e PASSWORD_ACCESS=false `#optional` \
  -e USER_NAME=debian `#optional` \
  -p 2222:2222 \
  -v /path/to/config:/config \
  --restart unless-stopped \
  peerapach/openssh-debian
⁠Use public key from file
docker run -d \
  --name=openssh-server \
  --hostname=debian `#optional` \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Bangkok \
  -e PUBLIC_KEY_FILE=/path/to/temp/.ssh/public_key_file `#optional` \
  -e SUDO_ACCESS=false `#optional` \
  -e PASSWORD_ACCESS=false `#optional` \
  -e USER_NAME=debian `#optional` \
  -p 2222:2222 \
  -v ${HOME}/.ssh/:/path/to/temp/.ssh \
  --restart unless-stopped \
  peerapach/openssh-debian
⁠Use password
docker run -d \
  --name=openssh-server \
  --hostname=debian `#optional` \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Bangkok \
  -e USER_PASSWORD=password \
  -e SUDO_ACCESS=false `#optional` \
  -e PASSWORD_ACCESS=true `#optional` \
  -e USER_NAME=debian `#optional` \
  -p 2222:2222 \
  --restart unless-stopped \
  peerapach/openssh-debian

Tag summary

Content type

Image

Digest

sha256:a80d8578e…

Size

139.2 MB

Last updated

over 3 years ago

docker pull peerapach/openssh-debian