MacOS上传文件到CentOS服务器
2018-09-30 本文已影响30人
ChangLau
Step1:安装openssh服务
yum install openssh-clients
Step2:SCP命令传输
进入到要传输的文件夹目录
scp -P 26080 -r dist root@65.49.209.221:/root/blog_front
-P 端口号
-r 递归传输(文件夹和文件夹下)
上传单个文件
scp -P 26080 blog-0.0.1-SNAPSHOT.jar root@65.49.209.221:/root/blog_end
执行结果
favicon.ico 100% 1150 3.7KB/s 00:00
index.html 100% 1337 5.0KB/s 00:00
chunk-246063b4.e27a977c.css 100% 1586 6.8KB/s 00:00
chunk-vendors.8a001996.css 100% 196KB 195.9KB/s 00:01
chunk-71decdfc.fe75fc21.css 100% 2201 7.0KB/s 00:00
chunk-d48eafae.e08e01c4.css 100% 708 1.7KB/s 00:00
app.95945cac.css 100% 77 0.3KB/s 00:00
chunk-2d22d746.c89b3fcd.js.map 100% 1498 6.7KB/s 00:00
chunk-2d22d746.c89b3fcd.js 100% 502 1.6KB/s 00:00
app.cea10d7c.js.map 100% 28KB 90.3KB/s 00:00
chunk-246063b4.56b65671.js.map 100% 47KB 153.2KB/s 00:00
chunk-vendors.63c160d1.js 100% 1007KB 1.0MB/s 00:01
chunk-246063b4.56b65671.js 100% 11KB 35.0KB/s 00:00
chunk-d48eafae.6d6b93e4.js 100% 3694 11.9KB/s 00:00
chunk-71decdfc.08476485.js 100% 7335 35.0KB/s 00:00
chunk-71decdfc.08476485.js.map 100% 42KB 138.5KB/s 00:00
app.cea10d7c.js 100% 6992 22.2KB/s 00:00
chunk-vendors.63c160d1.js.map 100% 3366KB 840.2KB/s 00:04
chunk-d48eafae.6d6b93e4.js.map 100% 17KB 56.5KB/s 00:00
fontello.9354499c.svg 100% 16KB 51.7KB/s 00:00
user.0e8a71bf.png 100% 746KB 742.5KB/s 00:01
fontello.e73a0647.eot 100% 15KB 21.2KB/s 00:00
fontello.068ca2b3.ttf 100% 15KB 35.5KB/s 00:00
element-icons.6f0a7632.ttf 100% 11KB 35.1KB/s 00:00
element-icons.2fad952a.woff 100% 6164 19.6KB/s 00:00
fontello.a782baa8.woff 100% 9068 45.4KB/s 00:00
fontello.8d4a4e6f.woff2 100% 7764 33.2KB/s 00:00