使用pscp出现ignoring potentially dangerous server

编程入门 行业动态 更新时间:2024-10-06 10:32:16

使用pscp出现<a href=https://www.elefans.com/category/jswz/34/1465057.html style=ignoring potentially dangerous server"/>

使用pscp出现ignoring potentially dangerous server

这是一篇拆雷贴,防止大家以后在类似问题上花费太多无意义的时间

背景:从远程centos服务器上拷贝数据到本地windows上

方法:采用pscp进行取数据:
pscp -unsafe -r -pw password -P portnumber username@remoteAddress:/home/xxx/xxx/* d:\local

注:passwordportnumberusername还有remoteAddress,按照自己服务器地址自由发挥。

取数据过程比较坎坷,老会提示:

ignoring potentially dangerous server-supplied filename '2020-10-22T10:58:06-04:
00'


表示很懵逼,查了很多资料目前还没解决

原因:经探索哈,windows系统里边文件夹命名不可以有这种特殊字符,所以就保存不下来,类似的特殊字符还有:

转头在本地虚拟机上测试scp命令,一点毛病也没有,哎。。。

解决方案:虚拟机里边的centos系统,使用scp进行取文件,命令行如下:
scp -r -P portnumber username@remoteAddress:/home/xxx/xxx/* ~/Downloads/cp_results/

注:portnumberusername还有remoteAddress,按照自己服务器地址自由发挥,scp命令不支持在参数里加入psw选项,需要手动再去输入。

更多推荐

使用pscp出现ignoring potentially dangerous server

本文发布于:2024-03-13 14:42:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1734200.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ignoring   pscp   potentially   server   dangerous

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!