# 上传文件到 Linux (常用)
# scp {windows本地文件路径} {linux用户名}@{IP}:{要上传到的linux路径}
scp D:windows.txt root@xxx.xxx.xxx.xxx:/root/test/
# 下载文件到 windows
# 跟上面一致, 将两者位置交换即可
scp root@xxx.xxx.xxx.xxx:/root/test/demo.txt d:
速度一般可以跑满, 个人实测速度跟带宽差不多
如果想要查看本机 windows 的目录在 linux 中的表示方法, 可以在对应文件夹右键空白处, 使用 git 的 git bash here查看
如果要上传下载文件夹同理, 在scp后加上 -r即可
# 上传到 linux scp -r D:Demo root@xxx.xxx.xxx.xxx:/root/test/ # 下载到 windows scp -r root@xxx.xxx.xxx.xxx:/root/test/Demo d:



