Skip to main content
100%

Gist abca832946db64106b24e4927e369a11

✓ Published0🌍 Public
PPeleke
Last edited Feb 21, 2020
Created on Feb 21, 2020

This example shows a Bash script that automates the setup of a Linux scavenger-hunt lab environment, from downloading a deploy key to provisioning a virtual machine. The script uses `curl` to fetch an SSH private key, `git clone` and `git submodule update --init --recursive` to retrieve the lab definitions, and `vagrant up` to launch the machine. It then parses `vagrant ssh-config` output with `grep`, `awk`, and `sed` to extract the hostname and port, printing SSH connection instructions for the student user.

AI-generated description

Similar vizzes