_pwd=/mnt/demo26.ydool.net _ip=119.3.109.134 cd ../ #mvn clean package scp target/build/*.jar root@${_ip}:${_pwd} #scp target/build/lib/*.* root@${_ip}:${_pwd}/lib ssh root@${_ip} "cd ${_pwd}; sh ./start.sh"