简体   繁体   中英

Download a file from remote server in UNIX

I have a file on a remote server that I can connect to via ssh. I would like to copy the file from the remote server at the path: '/home/example.txt' to my computer's desktop.

Should I be using wget , sftp , ftp , or simply rm ?

Bonus points if you know a good resource for UNIX documentation, since google's results were not great.

使用scp(1)

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

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

scp or rcp if you don't want/need to be secured. Or alternatively rsync will be nicer for anything more complicated with remote file transferring on a regular basis.

For the documentation, look at the man pages, ex: man scp . Or online at

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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