简体   繁体   English

在UNIX中从远程服务器下载文件

[英]Download a file from remote server in UNIX

I have a file on a remote server that I can connect to via ssh. 我在远程服务器上有一个文件,我可以通过ssh连接到该文件。 I would like to copy the file from the remote server at the path: '/home/example.txt' to my computer's desktop. 我想将文件从远程服务器的路径:'/ home / example.txt'复制到我的计算机桌面。

Should I be using wget , sftp , ftp , or simply rm ? 我应该使用wgetsftpftp还是简单地使用rm

Bonus points if you know a good resource for UNIX documentation, since google's results were not great. 如果您知道UNIX文档的良好资源,那么奖励积分,因为谷歌的结果不是很好。

使用scp(1)

~$ scp user@host:/home/example.txt .

他们都没有,你应该使用scp

scp or rcp if you don't want/need to be secured. 如果您不想要/需要保护,请使用scprcp Or alternatively rsync will be nicer for anything more complicated with remote file transferring on a regular basis. 或者,对于任何更复杂的定期远程文件传输, rsync都会更好。

For the documentation, look at the man pages, ex: man scp . 有关文档,请查看man页,例如: man scp Or online at 或者在线上

试试Filezilla Utility更多关于http://filezilla-project.org/的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM