scp crontab远程拷贝


/usr/bin/scp -i /root/.ssh/id_rsa -l 400000 /data/logs/budejie/*access.log'-'$now analog@log:/data2/analog/log/



也可以如下设置。

export SSH_AUTH_SOCK=/tmp/ssh-eeHsmZ8551/agent.8551; ssh -p 2208 web1 "logger -p user.info 'hello world'";


你可能感兴趣的:(crontab,scp,远程拷贝)