Putty upload files
The only spaces in the pscp command are after pscp and between the two paths. If you want to upload a file which has spaces in its file name or the directory containing it has spaces , you have to put the whole path to the file on your local computer in quotation marks.
The same has to be done if you download a file on your local computer in a directory that has spaces in its name. For example, you want to upload a file called my example file. If you want to download the same file a file with spaces in the name from your hosting account, you only need to put quotation marks around the file name:.
The above command will download a file called my example file. The above commands will only work for single files. For example, the following command will download all the files without any subdirectories inside the documents folder from you account to the D drive on your computer:. If you want to transfer a directory together with all the files and subfolders in it, you have to add the option -r.
For example:. A tip that may save you some time: by pressing the up arrow key on your keyboard you can browse through the previous commands that you have executed. 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. Please clarify if the question is specifically about putty or if answers about any method for uploading via scp is fine. Alexander, it is specifically about PuTTY.
Which do you mean? Are answers involving pscp on topic? And wich OS are you on? Are you trying to upload multiple files or a single file? What have you already tried?
Alexander, the question is from person who is using PuTTY, trying to find a way to upload file. See his comment in accepted answer. Add a comment. Active Oldest Votes. You need an scp client. Putty is not one. Both are free software. Johan Johan 4, 3 3 gold badges 33 33 silver badges 48 48 bronze badges. I cannot tell why.
As RaShe suggest, it might be a network issue. Maybe you can look in to the log files on the server to get a hint. Bitkinex bitkinex. Get the message "More than one remote source not supported". What to do about this? Erwinus, something is wrong with your command line arguments. See superuser.
0コメント