With the left and right arrow keys you can move the line cursor to correct mistakes in your commands. Don't forget that you also need to start Pageant and add your private SSH key. After you execute the set path command, you just need to type psftp followed by a space and your master username and the name of the server: e. With cd.. Here is a list with some useful commands:.
Files can be downloaded with the get command:. The above command will download a file called examplefile. 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. If the working directory on your local computer is the D drive, you can just use get -r newfolder. This will download not only the contents but also the folder itself to the working directory on your computer D drive in this example.
Asked 8 years, 8 months ago. Active 4 years, 5 months ago. Viewed 59k times. Improve this question. Peter Mortensen Tom Tom 4 4 gold badges 10 10 silver badges 23 23 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Frank Thomas Frank Thomas Thanks for your answer.
I have upvoted it for now. More than anything I need commandline though. You could use it like this: pscp -pw password username remote. Community Bot 1. Paul Paul This appears to be an ideal solution. I will leave the quesion open for some time to receive more answers. 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? You already know this. So now you download and open the winSPC and when it starts, you can log your server in there. After this you can access the folder and select download. It's pretty easy. If you still have question, search on google about the program, or download its handbook.
For MobaXterm :. Dika Purnasucita Dika Purnasucita 6 6 bronze badges. Mohamed Raafat Mohamed Raafat 72 5 5 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer?
Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
0コメント