First we need ssh on jenkins slave .
- - yum install java-1.8.0-openjdk
- useradd -d /var/lib/jenkins jenkins
- passwd jenkins
- su - jenkins
- ssh-keygen -t rsa -C "Jenkins agent key"
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_key
- chmod 600 ~/.ssh/authorized_keys
On jenkins master example http://localhost:8080
add new node :
then , we need add ip to slave :



