linux本地互传文件

1、从服务器下载文件

scp username@servername:/remote_path/filename ~/local_destination

2、上传本地文件到服务器

scp ~/local_path/local_filename username@servername:/remote_path

3、从服务器下载整个目录

scp -r username@servername:/remote_path/remote_dir/ ~/local_destination

4、上传目录到服务器

scp -r ~/local_dir username@servername:/remote_path/remote_dir

相关推荐
网硕互联的小客服8 分钟前
未来趋势:AI与量子计算对服务器安全的影响
运维·服务器·网络·网络安全·量子计算
黑客老李15 分钟前
EDUSRC:智慧校园通用漏洞挖掘(涉校园解决方案商)
服务器·前端·网络·安全·web安全
宇钶宇夕17 分钟前
STEP 7 MicroWIN SMART V2.2 的详细安装步骤及注意事项
运维·服务器·程序人生·自动化
是阿建吖!23 分钟前
【Linux | 网络】网络基础
linux·网络
mmoyula23 分钟前
【RK3568 驱动开发:实现一个最基础的网络设备】
android·linux·驱动开发
阿杆44 分钟前
😡同事查日志太慢,我现场教他一套 grep 组合拳!
linux·后端
墨小傲1 小时前
基于Linux下的vscode c/c++开发环境搭建详细教程
linux·c语言·vscode
cui_win1 小时前
【网络】Linux 内核优化实战 - net.ipv4.tcp_timestamps
linux·网络·tcp/ip
czhc11400756631 小时前
Linux 77 FTP
linux·运维·服务器
魂尾ac1 小时前
Centos Docker 安装(100%成功)
linux·docker·centos