Use SCP Local to Remote
https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/
把文件从本地推送到远程服务器
首先进行压缩文件,zip -q -r asdf.zip *
然后进行文件的传送:
scp file.txt remote_username@10.10.0.2:/remote/directoryscp test_linlin_blog.zip root@linlin.fun:~/workspace/
这样就可以传送成功了:

在远程进行解压缩:
unzip asdf.zip