先使用ssh命令连接到服务器 传输文件 scp -r -P 8124 /home/tong/aaa root@bob.geeekvr.com:/Tong 加-r说明上传的是目录,-P指定端口号(注意是大写) rsync命令