This repository has been archived by the owner on Oct 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Provisioning the TigerOS Webhost
Aidan Kahrs edited this page Mar 30, 2018
·
2 revisions
- Login to proxmox and open the console for the VM named
TigerOS-mirror
- Login at the prompt.
- If not installed, install
wget
andvim
-
wget
the playbook from thebuildscripts
directory of this repo - On your local computer, using a python virtual environment,
pip install passlib
and then runpython3 -c "from passlib.hash import sha512_crypt; import getpass; hash=sha512_crypt.using(rounds=5000).hash(getpass.getpass());print(hash)"
- Type the password you want for the mirror user of the mirror VM at the prompt.
- Copy the resulting hash and add it in place of the existing one in the playbook on the remote VM. a. Alternatively you can leave the default and manually reset the password after the playbook runs.
- Run
ansible-playbook playbook.yml
- The server is now provisioned.
- On your local machine, generate a new ssh keypair. Upload the public half to a pastebin such as fpaste.org.
- Use
wget
to download the raw paste to the VM and add it to/home/mirror/.ssh/authorized_keys
. - Disable password auth in
/etc/ssh/sshd_config
and restartsshd
- You should now be able to login to the VM remotely.
© CC-BY-SA 4.0 – 2018, RIT Linux Users Group