PSCP将文件从godaddy复制到我的Windows机器上 [英] PSCP copy files from godaddy to my windows machine

查看:1511
本文介绍了PSCP将文件从godaddy复制到我的Windows机器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用我的Windows dos中的pscp命令,并尝试下载整个public_html文件夹。
我的命令是:



pscp -r user @ host:public_html / d:\ site \;



正在正确下载文件以及文件夹。但问题是public_html和其他子文件夹有两个文件夹,如./和../。由于这两个文件夹,我的副本正在失败,我得到
安全冲突:远程主机尝试写入a或..路径!错误。



希望任何人都可以帮助这个。
注意:我只有ssh访问,必须从ssh命令本身下载。

解决方案

向源文件添加一个明星应该修复它,例如

  pscp -r user @ host:public_html / * d:\sites\; 


I want to take backup of my website which is hosted on godaddy.

I used pscp command from my windows dos and try to download whole public_html folder. my command is :

pscp -r user@host:public_html/ d:\sites\;

Files are downloading properly and folders also. But the issue is public_html and other subfolders has two folder like "./" and "../". Due to these two folders my copy is getting failed and I am getting "security violation: remote host attempted to write to " a '.' or '..' path!"error.

Hope any one can help for this. Note : I have only ssh access and have to download it from ssh commands itself.

解决方案

Appending a star to the source should fix it, e.g.

pscp -r user@host:public_html/* d:\sites\;

这篇关于PSCP将文件从godaddy复制到我的Windows机器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆