Skip to content

Instantly share code, notes, and snippets.

@wy193777
wy193777 / gist:25d8e277f4fd01b29a52f46ab0b1715f
Created April 3, 2017 23:51 — forked from mgedmin/gist:9547214
Setting up a Jenkins slave on Linux
# This is how you add a Jenkins slave
# On master:
sudo -u jenkins -H ssh-keygen
# On slave
adduser --system --group --home=/var/lib/jenkins-slave --no-create-home --disabled-password --quiet --shell /bin/bash jenkins-slave
install -d -o jenkins-slave -g jenkins-slave /var/lib/jenkins-slave