Unix command to download a file from a server






















Connect and share knowledge within a single location that is structured and easy to search. I have my working system in a remote location and the os is in unix and i need to get the files from that remote unix system to my local machine using bash commands.

I tried. If you don't have scp installed on your windows you can install winscp. You can use winscp to download using sftp see instructions. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. How to copy the files from remote unix server to local windows?

Asked 4 years, 5 months ago. I have program in Unix that generates files 8 files at pm everyday. I can drag and drop those but its time consuming, I need to automate this process. I cannot use. Net assembly to download those. Let me know how can I solve this. Improve this question. Martin Prikryl k 46 46 gold badges silver badges bronze badges. Where do you get the error? It's not WinSCP error. How did you try to use the get command?

Show us your code and the way you try to execute it. Add a comment. Active Oldest Votes. The simplest download batch file is like: winscp. Improve this answer. Martin Prikryl Martin Prikryl k 46 46 gold badges silver badges bronze badges. It may also use many features of ssh, such as public key authentication and compression.

Some more articles on related topic to transfer files and folders between two servers :. Once connected you can now copy file from remote server to local machine windows or vice versa. Assuming the user deepak has enough privilege you should be able to copy file from remote server to local machine windows or vice versa.

In the above SFTP usage example we had explicitly provided the path to download files and directory. By default the local directory under which you have executed SFTP will be the " local path " where SFTP will by default download the files to if you have not given any source directory. I could not find a single line SFTP put command to upload directory from local to remote server, if you come across any such one liner SFTP put command do let me know via comment section. I have explained more about batch file in another article so I will not cover this part again.



0コメント

  • 1000 / 1000