Git Product home page Git Product logo

meshagent-docker's Introduction

MeshCentral Agent in a Debian Docker container. Created for use on NixOS, but should work wherever Docker does (in fact, should work better on non-immutable/declarative systems). EDIT: chroot method needs further testing, NOT recommended! Images will be built for use later on, for now clone the repo, copy and edit the .env file, and build the image. Usage shown below.

After building/starting the image/container, you will want to run docker logs meshagent and check for further instructions on adding the container's SSH key to the host system's authorized_keys file, for passwordless terminal access in MeshCentral. If using the root user as the Mesh User, you will need to ensure root SSH access is allowed. You can restrict the root SSH access to the host system's IP address. Instructions on how to do so on NixOS should be in the Docker container logs.

.env file takes

  • Your MeshCentral server url
  • A Mesh agent token (can be obtained from clicking "Add Agent" > "Linux / BSD". Copy the token enclosed in the single quote characters inside the installation command, include the quote characters in the .env file.)
  • A Mesh User (for connecting via SSH to the host system, defaults to root)

Usage

git clone https://github.com/Kuuchuu/meshagent-docker.git
cd meshagent-docker
cp .env.example .env
micro .env || nano .env || nvim .env || vim .env || emacs .env || vi .env
docker compose up --build
docker logs meshagent

Known Issues:

  • Desktop tab in MeshCentral does not work, exploring options
  • Files tab in MeshCentral does not connect directly to host system when not using chroot mode. Workaround implemented (/host directory in Files tab)

To Do:

  • Alpine Image
  • More Environment Variables
  • Pre-built Images

meshagent-docker's People

Contributors

kuuchuu avatar

Stargazers

Omer Faruk Oruc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.