打开mac中的终端
使用命令:$scp /local/file user@remote:/file
/local/file 是本地文件 后面部分[用户名]@[ip地址:][服务器中的文件目录]
not a regular file
linux 下scp传文件时错误 scp: /usr/tools: not a regular file 不能成功传送 解决方案
1:有可能没权限 chmod 777
2: 在使用scp时加上-r 参数
scp -r [email protected]:/usr/tools/xxxx