Jenkins uploads files to other servers via SSH plugin
1 Install Publish Over SSH plug-in
First, Jenkins needs to install the Publish Over SSH plug-in, find the plug-in management, search and download
2 Configure SSH plugin
After installing the Publish Over SSH plug-in, click System Management -> System Settings, and find the Publish Over SSH section in the system settings interface
Click the advanced option, the configuration is as shown in the figure:
After configuration, click test configuration to test that it is connectable, if it can, it means the configuration is successful
3 use
Reference to (thanks to him for sharing, like!): https://blog.csdn.net/MenofGod/article/details/81941223