首先配置服务器,managejenkins那里进去
然后是在你项目中,点击配置然后寻找SSHPublisher,注意路径要写对,remote directory是相对于上面的remotedirectory也就是/opt/tmp