使用scp命令传输文件

1. 从远端复制文件到本地:

sudo scp root@192.168.0.1:remote_path/remote_file .

2. 从本地复制文件到远端:

sudo scp local_file root@192.168.0.1:remote_folder
原文地址:https://www.cnblogs.com/lijingchn/p/5532641.html