目录 scp scp scp -rp -P 545 oldgirl.txt "root@10.0.0.200:/tmp" -r 表示可以传输目录 -p 权限也一并拷贝过去 -P 如果不是默认端口,则用-P