How to download a file from server using putty






















Active 10 years, 5 months ago. Viewed 2k times. Improve this question. Add a comment. Active Oldest Votes. This is untested but it should work I think. Improve this answer.

Moritz Both Moritz Both 8 8 silver badges 17 17 bronze badges. To enable it: Click on "Advanced options" check box. An SSH session is like a portal into another machine. Just drag and drop! No text commands, no authentication, none of that. However, sometimes you will need to download a file from SSH to your local desktop, such as if you are using one of our Linux VPS servers. The two environments are too far apart.

First, we have a file on the remote server called filetodownload. This has to be done when you're downloading a file to a directory on your local computer that is not your current working directory. Unlike PSCP, where if you don't specify a name the file will be saved with the original name, with PSFTP if you don't specify a name for the file the get command might not work.

You have the choice whether to use the same name for the target file or to use a different one, but in both cases the content of the file will be the same as that of the source file. Since with PSFTP you can browse and change the working directory on your account cd command , you don't have to type the full path to the file on your account that you want to download.

Using the above example, if you use the cd command e. The same is true for the current working directory on your local computer. In this case you don't even have to type the name of the target file when you download it to the current working directory on your computer.

You can just use get examplefile. To download a directory with all its content including subdirectories , you have to add, as with PSCP, the option -r :. The above command will download a directory called newfolder from the current directory on your account to the D drive on your local computer. If you don't specify a name for the directory on you local drive e. So the contents of newfolder will be scattered on your D drive. This, as with files, is the case when the current working directory on your local computer is not your local D drive.

Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I am investigating various options for writing a program that can automate download of files on a SSH server. I need it to automatically log in, navigate to different directories and download all files from there. However, upon further thinking, it seems to me it may be easier to use PuTTY commandline to download all files from various folders to my own Windows computer.

I currently have a root account which I don't really want. I am afraid something can go wrong, and I will be to blame. Could I ask the server administrator to provide me with a limited account only with read privilege - and only to those directories? If so, that would be 1 way for me to solve my client's problem. Add a comment. Active Oldest Votes. Though PuTTY supports connection-sharing. I'm the author of WinSCP. Martin Prikryl Martin Prikryl k 46 46 gold badges silver badges bronze badges.

Works great! Ashish Ashish 1, 11 11 silver badges 12 12 bronze badges. Compress: tar -zcvf archive-name. So you can use it in command prompt or power shell like bellow. Luan Souza Luan Souza 99 1 1 gold badge 1 1 silver badge 8 8 bronze badges. Welcome to Stack Overflow! Can you elaborate more in your answer? For example, can you give an example how to use the WinSPC program? Considering that you already have archives in your server that you access using PuttY, right?



0コメント

  • 1000 / 1000