当前位置:网站首页>SSH method 2 for adding node nodes in Jenkins
SSH method 2 for adding node nodes in Jenkins
2022-06-22 22:55:00 【Non famous operation and maintenance】
install SSH plug-in unit
Jenkins- Plug-in management - Optional plug-ins - Search for SSH Agent
Configure enable SSH Server
Jenkins- System management - Global security configuration , hold SSH Server Set to enable ( The default is disable )
New node
The first way (SSH Key connection ):
1.Jenkins Host generation SSH secret key
[[email protected] ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:oI7S4uwjskL1wGBt04Xq3F2huICMKSZ8jBTfwiROlNk [email protected]
The key's randomart image is:
+---[RSA 3072]----+
|.=*.. o. |
|o*=E.o . |
|*oB+o.o . . |
|=* O.o o . |
|+ = * o S |
| o = + . |
|+ o . |
|*+ |
|*=. |
+----[SHA256]-----+
2. send out Jenkins Host public key to remote host
[[email protected] ~]# ssh-copy-id 192.168.1.20
3. test Jenkins The host connects to the remote host without secret
[[email protected] ~]# ssh [email protected]
Last login: Fri Mar 4 10:44:53 2022 from k8s-master
[[email protected] ~]#
4. add to Jenkins host SSH Private key key For credentials
[[email protected] ~]# cat /root/.ssh/id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA0le59pH7mp+XHxmkoEbX8SyXcZ+dmcyhrS1HbqtfnWVoSqai
MrQijlIDv66bFDg9VnbFUKiXrcbzC+wVh8zuuy4Zl9OyvUEOC/YSHwaBvqMwPqgw
nipCRoNNq3MQMBr7T6r7SWA0CCP2IPCl+q0W/HHI5LRk8FT7rGH/hdufwYn8rJxM
B7jntBXMKZJzIQRMyVkZ0vlAla/2/t33dQVRLKNF8//G3wEKQL1yGMgmCXtAj/rn
M96T4qIq4DpkELUFR52ql5SjSFZ3MLQ5Weyx81leLIJH5ikJ6N6pHQMNBRtW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Cis9vqLITJoc9/n5GyuovwEAMcQkdWtl/21DEyWb74Lds
Mw+JPQKBgQCiKGvd+YXzPgh3BJoguaMAIrcrlr0iGAEU5y2qi4xgqfyp4Wcb+RHx
LAF7Uz2aT5oj4GP7HVBN7E2OyBe9TjOATnRRb+lSTKNMYYV20av5LaahtlN5URYu
JC7glE/aMXR60Fx4E0iajzZpDKFyQSfc1TqReBQQF+qR0c5QeQSbRw==
-----END RSA PRIVATE KEY-----
5. Add slave node
Add node page explanation :
- name : Customize a node name
- Number of actuators : Can be executed at the same time job Number of threads , Just write a number
- Teleworking program : The host machine Workspace Catalog
- label : Customize , Facilitate later identification
- usage : Use this node as much as possible
- Starting mode :Launch agent agents via SSH
- host : Enter the host to be remote IP Address
- Credentials: take Jenkins Locally generated SSH The public key of the key is sent to the host to be remote , And add Jenkins The private key of the host key Remote connection for credentials
- Host Key Verification Strategy: That's the choice Known hosts file Verification Strategy
The second way :(ROOT Account secret connection )
1. Add the name of the remote host ROOT The account and password are credentials
2. Add slave node
Add node page explanation :
- name : Customize a node name
- Number of actuators : Can be executed at the same time job Number of threads , Just write a number
- Teleworking program : The host machine Workspace Catalog
- label : Customize , Facilitate later identification
- usage : Use this node as much as possible
- Starting mode :Launch agent agents via SSH
- host : Enter the host to be remote IP Address
- Credentials: Add the host to be remote ROOT Credentials for account and password
- Host Key Verification Strategy: That's the choice Non verifying Verifcation Stragegy
边栏推荐
- Dragon City in Europe | National Geographic the most romantic and safe destination in the world
- 欧洲的龙之城|国家地理全球最浪漫最安全的目的地
- [GWCTF 2019]mypassword XSS
- sitl_ gazebo/include/gazebo_ opticalflow_ plugin. h:43:18: error: ‘TRUE’ was not declared in this scope
- [ROS introduction] cmakelist Txt and packages XML interpretation
- Codeup longest palindrome substring
- leetcode. 11 --- container with the most water
- 2021-04-14
- Summary of just meal with 900W increase in playback and acclaim from station B users
- [path planning] week 1: Path Planning open source code summary (ROS) version
猜你喜欢

How to quickly build an enterprise knowledge base at low cost?

Huawei cloud recruits partners in the field of industrial intelligence to provide strong support + commercial realization

Grafana report display of sentinel based high availability current limiting system

The required reading for candidates | PMP the test on June 25 is approaching. What should we pay attention to?

5分钟快速上线Web应用和API(Vercel)

2021-05-02

2021-04-05

The relationship between derivative and differential of function
![[GWCTF 2019]mypassword XSS](/img/26/3611fd5aae21ea004dcfcc2c623328.png)
[GWCTF 2019]mypassword XSS
![[GWCTF 2019]mypassword XSS](/img/26/3611fd5aae21ea004dcfcc2c623328.png)
[GWCTF 2019]mypassword XSS
随机推荐
Wechat applet batch submission for review
How to manage tasks in note taking software such as flowus and notation?
Solution to cache inconsistency
322. change exchange
[ROS introduction] cmakelist Txt and packages XML interpretation
A group of K overturned linked lists [disassembly / overturning / assembly of linked lists]
下一个排列[发挥主观能动性发现规律]
2020-12-20
Uniapp applet mall develops thinkphp6 points mall, group purchase and seckill packaged app
General trend wisdom to create inclined model and cut monomer
leetcode. 11 --- container with the most water
What if the SQL execution plan of the production system suddenly becomes worse?
How to quickly build an enterprise knowledge base at low cost?
2021-03-06
[mavros] mavros startup Guide
The link added in the bottom menu cannot jump to the secondary page
Practice brings true knowledge: the strongest seckill system architecture in the whole network is decrypted. Not all seckills are seckills!!
Task management of embedded development foundation (thread management)
2021-04-05
Greedy interval problem (4)