MAC中向阿里云服务器上传文件

打开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

猜你喜欢

转载自www.cnblogs.com/qichao123/p/9121125.html
今日推荐