Discover Packages
github.com/CPCTF2022/ssh-separator
command
module
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: May 5, 2024
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
ssh-separator
Tool to distribute ssh connections to docker containers for each user
Requirement
Usage
Launch
It can be started using docker.
For more information about environment variables, please see Environment Variables .
example
$ wget https://github.com/CPCTF2022/ssh-separator/raw/main/docker-compose.yaml
$ docker compose up
REST API
You can add users and reset the container for users via REST API.
See OpenAPI for details.
Environment Variables
variable
description
example value
WELCOME
The string displayed upon successful login.
Login success!
API_KEY
API key for REST API.
aeneexiene7uu3fie4pa
API_PORT
Port for REST API
3000
SSH_PORT
Port for ssh
2222
IMAGE_NAME
Docker image for user container
mazrean/cpctf-ubuntu:latest
IMAGE_USER
Username in user containers.
ubuntu
IMAGE_CMD
Shell in user containers.
/bin/bash
CPU_LIMIT
The number of CPUs to allocate to user containers.
0.5
MEMORY_LIMIT
Memory limits for user containers.
1024
PIDS_LIMIT
Limit the number of processes to user containers
-1
BADGER_DIR
Directory where user data is stored.
/var/lib/ssh-separator
PROMETHEUS
If true, provide metrics for prometheus.
true
Author
Shunsuke Wakamatsu (a.k.a mazrean)
Licence
MIT
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
Package mock_repository is a generated GoMock package.
mock_service
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.
mock_store
Package mock_store is a generated GoMock package.
Package mock_store is a generated GoMock package.
Package mock_workspace is a generated GoMock package.
Click to show internal directories.
Click to hide internal directories.