STNS server settings for vmlmachines and vmlbastion
-
Create
stns.conf
file onstns-server
directory.port = 1104 include = "/etc/stns/conf.d/*" # STNS server-client authentication (basic auth example) [basic_auth] user = "stnsuser" password = "stnspassword"
-
Create
.env
file onstns-server
directory.CSV_URL="https://xxxxx.xxx/xxxxx.csv"
This csv file should follow the format below:
Timestamp Mail address Username Shell Pubkey (vmlmachines) Pubkey (vmlbastion) 20XX/01/01 00:00:00 mail@xxxxx user bash ssh-rsa AAAA... ssh-ed25519 AAAA... Using Google Forms, you can easily get this csv file and url.
-
Run scripts to add users.
./update-vmlmachines.sh ./update-vmlbastion.sh
-
Run stns containers.
sudo docker-compose up -d
-
Run scripts to add users.
./update-vmlmachines.sh # or / and ./update-vmlbastion.sh
-
Restart stns containers.
sudo docker-compose restart