Skip to content

ansible playbook for webtty server with jailed users in docker containers

Notifications You must be signed in to change notification settings

oedm/webtty-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebShell via https

Quick ansible playbook to install locally these requirements:

  • Wetty via docker container (listen port 3000)
  • Nginx reverse proxy with TLS termination (self-signed) for Wetty
  • Reconfigure SSH to use docker as an jailed environment
  • Creates group jailed and users from ssh_jailed_users variable
    • users expire within 24 hours
    • users with group jailed will connect to unprivileged docker container
    • Set inital password of $USERNAME concat with initial_password_suffix variable (i.e. maxStart123).

Usage

Entrypoint is the ./bootstrap.sh file to install dependencies (i.e. ansible and galaxy roles) and start the playbook.

Docker

After the login of your students, you can execute ansible-playbook docker-ping.yml in order verifiy the running docker container. This playbook can be used as an example to rollout further training materials.

About

ansible playbook for webtty server with jailed users in docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published