1、拷贝远程服务器文件到本地 scp root@192.168.1.1(远程服务器ip):/tmp/a.cpp ./ 2、本地文件传输到远程服务器 scp ./a.test root@192.168.1.1:/tmp