复制本地linux文件到远程服务器linux
scp /home/files root@172.16.252.32:/user/aa
复制远程服务器的文件到本地服务器
scp root@172.16.252.32:/home/files /home/files
出现not a regular file 错误 是由于复制的不是一个文件而是一个文件夹,须要加-r 参数code
scp -r root@172.16.252.32:/home/files /home/files