// 输入以下, 并且输入服务器密码即可 [root@caoxl ~]# ssh-copy-id -i .ssh/id_rsa.pub root@47.107.169.233 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@47.107.169.233's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'root@47.107.169.233'" and check to make sure that only the key(s) you wanted were added.
cd /${WORKSPACE} tar -zcvf /var/www/code_backup/${JOB_NAME}_${BUILD_NUMBER}.tar.gz ${JOB_NAME} tar -zcvf /var/www/code_backup/${JOB_NAME}_${BUILD_NUMBER}_bak.tar.gz /var/www/lumen6.caoxl.com mv /var/www/code_backup/${JOB_NAME}_${BUILD_NUMBER}.tar.gz /var/www/ cd /var/www/ tar -zxvf ${JOB_NAME}_${BUILD_NUMBER}.tar.gz rm ${JOB_NAME}_${BUILD_NUMBER}.tar.gz chown -Rf www:www *