Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

hashbang/shell-signup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#! Shell Signup

https://github.com/hashbang/shell-signup

About

This is the central login system for #! users.

All ssh connections to this container as any user will be routed to a signup script which will be provided with intercepted public key and username value.

The signup script will provide a user interface to allow specifying a desired username and home server. On submission the script will make a POST request to our central signup server to create the account.

Requirements

  • Docker v18.0+

Cloning

git clone git@github.com:hashbang/shell-signup.git
cd shell-signup
git submodule update --init

Building

docker build -t shell-signup .

Testing

docker run --rm --name shell-signup -it -p 22:22 shell-signup
ssh localhost

Debugging

Verify NSS resolution for unknown users

docker run --rm --name shell-signup -it shell-signup id randomuser

Start with ssh debugging to stdout

docker run \
  --rm \
  --name shell-signup \
  -it \
  -p 22:22 \
  shell-signup \
  /usr/sbin/sshd -dD -f /etc/ssh/sshd_config

Notes

Use at your own risk. You may be eaten by a grue.

Questions/Comments?

Talk to us via:

Email | IRC | Issues

Releases

No releases published

Packages

No packages published

Languages