在上篇中我们完成了导出CSV并打包压缩成xxx.tar.gz,本篇中我们将继续将完成打包的数据传送到供应商指定的服务器上,采用的方式SCP命令。
1. 由于供应商的LINUX主机SSH服务安全设置,需要我提供本机SSH公钥,采用如下方式查询
[root@shlitprodcrmc01 opt]# cd ~ [root@shlitprodcrmc01 ~]# cd .ssh/ [root@shlitprodcrmc01 .ssh]# ll total 16 -rw------- 1 root root 402 Aug 12 2021 authorized_keys -rw------- 1 root root 1679 Aug 12 2021 id_rsa -rw-r--r-- 1 root root 402 Aug 12 2021 id_rsa.pub -rw-r--r-- 1 root root 1720 Apr 25 14:11 known_hosts [root@shlitprodcrmc01 .ssh]# cat id_rsa.pub
2. 使用SCP命令进行传输,完成
scp fullorder20220425.tar.gz root@xxx.xxx.xxx.xxx:/opt/



