Putty to download file
Mircea Vutcovici Mircea Vutcovici He has two intermediate hops. Does WinSCP really provide this? No, WinSCP can use only one tunnel. But he can use another tunnel besides one provided by WinSCP. 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. Introducing Content Health, a new way to keep the knowledge base up-to-date.
You probably want one of these. Browse the documentation on the web. HTML: Contents page. Zipped HTML: puttydoc. Plain text: puttydoc. 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.
Again, as with files, if you want to you can specify a different name for the target directory e. With the command mget you can download multiple files at the same time. For example, mget examplefile1. With the -r option you can use mget to download multiple directories e. Basically the same rules apply to this command as the ones for get.
Only in this case first you specify the file and path on your local computer and then on your account:. The above command will upload a file called examplefile.
Similarly to the get command, if you are uploading a file to a directory that's not your current working directory you have to specify not only the path on your account but also the name with which the file will be saved.
This allows it to support the client Windows side connection requests. If you don't already have an ssh server set up, the following steps should work on Debian systems Ubuntu, etc. Note that if you are running a firewall such as ufw, you may have to open port 22 to allow the connections.
Using the pscp command, you can then move files from Windows to Linux or vice versa. The syntax is quite straightforward with its 'copy from to' commands. The process can be made a little smoother and easier if 1 pscp is in your Windows search path and 2 your Linux system is in your Windows hosts file. If it is, you don't need to be concerned with where you are in the file system relative to the pscp executable.
Moving into the folder containing the files you want to move will likely prove easier. Here's the other little fix. With administrator rights, you can add your Linux system to the Windows host file C:WindowsSystem32driversetchosts and then use the host name in place of its IP address. Keep in mind that this will not work indefinitely if the IP address on your Linux system is dynamically assigned. Comments are prefaced with pound signs.
Keep in mind that lines in text files on Windows end with both a carriage return and a linefeed.
0コメント