From the course: Complete Guide to Open Source Security

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Enrolling hosts into the Fleet server

Enrolling hosts into the Fleet server

- [Instructor] Now we have a Fleet server, we can start adding our hosts. This process is similar to that which we've just done for the Fleet server. Let's click Add Agent. We'll select the Linux agent policy, and once again, elkstack has generated the commands to load this policy into the host. We'll copy them. We'll save this into a file called elagent.sh. We'll, again, change the folder to elagent, and we'll add the --insecure flag. Okay, we'll save this. We need to run this script on the hosts. So let's set up a Python web server so that we can access it from our web01 and app01 hosts, python3 -m http.server. (keyboard clacks) We're in our web server root folder. So let's pull down our script. So you get http://192.168.1.102, and we're going on port 8000, and we want elagent.sh, (keyboard clacks) and we'll make this executable, chemod +x elagent.sh, (keyboard clacks) sudo nano elagent.sh, (keyboard clacking continues) and we forgot to... I forgot to change directory to elagent…

Contents