其他分享
首页 > 其他分享> > 123

123

作者:互联网

\(ip="192.168.0.166" \)user="root"
cat ~/.ssh/id_rsa.pub | ssh \(user@\)ip "cat - >> ~/.ssh/authorized_keys"

!/bin/sh

$ip="81.69.243.70"

\(ip="192.168.0.166" \)user="root"

npm run build
ssh \({user}@\){ip} 'cd /usr/local/erp/html/; mv ./dist ./$(date "+dist_%Y%m%d_%H:%M:%S"); mkdir dist'

echo 'put -r ./dist' | sftp \({user}@\){ip}:/usr/local/erp/html/dist

标签:dist,ip,html,192.168,123,user,ssh
来源: https://www.cnblogs.com/jaycethanks/p/16593135.html