scp 报错 not a regular file

 scp source/filename [username]@[host]: destination
 
scp 报错 not a regular file
 
解决方法 :加上-r选项
scp -r wift* 10.160.9.202:/srv/backup/
 
 
原因 : 要拷贝的是文件夹


原文地址:https://www.cnblogs.com/jilili/p/14449544.html