scp报错:not a regular file

用scp拷贝文件夹的时候会出现这个错误

解决办法:

加个-r的参数就行了

如:

# scp -r /mnt  root@127.0.0.1:/home