pscp no such file or directory

背景:在WINDOWS10 上传一个文件 到 Centos 7中  

工具:pscp

用法:

pscp.exe -C e:\tinyfox\site\wwwroot\cdms\projecttemplate\welcome.html root@***.***.***.***:/home/tinyfox/site/wwwroot/cdms/projecttemplate/welcome.html(***为IP地址)

错误提示: no such file or directory

==========================================

错误已经提示很明白,没有该文件或文件夹,

可是我的文件夹都是对的啊!

可这是什么呢?

原因:WINDOWS中文件夹的名称大小写可以识别到,而 CENTOS 7 里  文件夹必须完全一致,特别是大小写

机关在: projectTemplate 文件夹

我的windows 10 里也是 projectTemplate 但上传时,所有的字母小写可以识别的,但在Centos 7 不能识别。即应该改成这样:

pscp.exe -C e:\tinyfox\site\wwwroot\cdms\projecttemplate\welcome.html root@***.***.***.***:/home/tinyfox/site/wwwroot/cdms/projectTemplate/welcome.html(***为IP地址)

猜你喜欢

转载自www.cnblogs.com/ssqhan/p/9689417.html