# Linux Hosts

# Requirements


:::info
**Agent for Linux OS**

[[Download Here](https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent)] - x86

[[Download Here](https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent_aarch64)] - ARM64


Alternative:

(x86 Architecture)

```bash
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent 
chmod +x TutelaLinuxAgent
```


(ARM64 Architecture) 

```bash
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent_aarch64
chmod +x TutelaLinuxAgent_aarch64
```


*❗Supported Distributions: Ubuntu, RedHat, CentOS, Rocky Linux, Alma Linux, Amazon Linux*

:::


:::tip
**Important**!

Before moving forward, make sure to retrieve your API key.

* Login to Tutela
* Go to **Settings > Agent API Keys and Settings**
* Click on **Add API Key** 

:::

## Linux Platform 

The agent does not need to be installed but simply run. 

### Initiate a Host Scan

Running the agent is very straightforward. Simply run the below command from a root terminal:

```bash
./TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY
```


:::warning
**⚠️ Trial Users**

```bash
./TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"
```

:::


## Create a CronJob 

To create a CronJob, simply navigate to use `crontab -e` and add the below line to the crontab file:


:::tip
The below CronJob will run every Sunday at 5:00AM. Please make sure to replace the path of the Tutela agent with the real file path. 

:::

```bash
0 5 * * 0 /absolute/path/to/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY >> /var/log/tutela_agent.log 2>&1
```


:::warning
**⚠️Trial Users**

```bash
0 5 * * 0 /absolute/path/to/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io" >> /var/log/tutela_agent.log 2>&1
```

:::


### Linux Provisioning Script

The below provisioning script downloads and schedules the scan since the Tutela agent does not require it to be installed. 


:::tip
Please make sure to adjust the `HTTP_PROXY` and `HTTPS_PROXY` depending on your configuration. The below script will run monthly. 

:::

```bash
#!/bin/bash

export HTTP_PROXY=http://change-or-remove.proxy.com
export HTTPS_PROXY=http://change-or-remove.proxy.com

cd /usr/local/bin
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent
chmod +x TutelaLinuxAgent

echo '''#!/bin/bash 
/usr/local/bin/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY''' > /etc/cron.monthly/tutela.sh
chmod +x /etc/cron.monthly/tutela.sh
```


:::warning
⚠️ **Trial Users**

```bash
#!/bin/bash

export HTTP_PROXY=http://change-or-remove.proxy.com
export HTTPS_PROXY=http://change-or-remove.proxy.com

cd /usr/local/bin
wget https://csinstallscripts.blob.core.windows.net/cs-vas/TutelaLinuxAgent
chmod +x TutelaLinuxAgent

echo '''#!/bin/bash 
/usr/local/bin/TutelaLinuxAgent -api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"''' > /etc/cron.monthly/tutela.sh
chmod +x /etc/cron.monthly/tutela.sh
```

:::



---


:::info
tags:

* Linux provisioning script
* Tutela agent

:::

---

**Documents**

- [1. Getting Started](https://outline.cybersift.io/s/tutela-docs/doc/1-getting-started-wi972eTn7N)
- [2. Vulnerability Scanning](https://outline.cybersift.io/s/tutela-docs/doc/2-vulnerability-scanning-giL9tJRfit)
- [3. Asset Management](https://outline.cybersift.io/s/tutela-docs/doc/3-asset-management-TVe3GfeqgX)
- [4. Online Presence Monitoring](https://outline.cybersift.io/s/tutela-docs/doc/4-online-presence-monitoring-7dAIDIi6OT)
- [5. Reporting](https://outline.cybersift.io/s/tutela-docs/doc/5-reporting-xCbDsqRFGR)
- [6. Tutela Integrations](https://outline.cybersift.io/s/tutela-docs/doc/6-tutela-integrations-GJJVFdWlTI)
- [7. Porta](https://outline.cybersift.io/s/tutela-docs/doc/7-porta-0KQ0fvqN3u)
- [FAQ](https://outline.cybersift.io/s/tutela-docs/doc/faq-IkXHcKeIFy)