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
注:password
,portnumber
,username
还有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/
注:portnumber
,username
还有remoteAddress
,按照自己服务器地址自由发挥,scp
命令不支持在参数里加入psw
选项,需要手动再去输入。
更多推荐
使用pscp出现ignoring potentially dangerous server
发布评论