Skip to content

Commit

Permalink
feat: added sshd service running for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shoriwe committed May 31, 2023
1 parent 6dd49e7 commit f56a93f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: "3.3"

networks:
fullproxy:
external: false

services:
sshd:
image: panubo/sshd:latest
container_name: fullproxy-sshd
restart: unless-stopped
networks:
- fullproxy
ports:
- "127.0.0.1:2222:22"
volumes:
- ./sshd/entrypoint.sh:/etc/entrypoint.d/entrypoint.sh:ro
environment:
- SSH_ENABLE_PASSWORD_AUTH=true
- GATEWAY_PORTS=true
- TCP_FORWARDING=true
- SSH_ENABLE_ROOT=true
- SSH_ENABLE_ROOT_PASSWORD_AUTH=true
7 changes: 7 additions & 0 deletions sshd/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e

adduser -h /opt/low -s /bin/bash -D low

echo "low:password" | chpasswd

0 comments on commit f56a93f

Please sign in to comment.