使用scp命令传输文件

使用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
posted @ 2020-09-14 11:50  逍遥姐夫  阅读(1100)  评论(0编辑  收藏  举报