Use Putty to copy files from Linux hosts to Windows hosts

Source: Internet
Author: User
Tags pscp

Update, after the Putty package decompression, want to use in the DOS window directly, you must add the path of the putty extracted files to the environment variables, so it will be very simple to use.

Depressed for a long time, finally took care of Putty upload download File command PSCP use. There are a lot of introductions on the Putty network, but this article is only for beginners who have just contacted Putty, how to upload and download files from Linux hosts.

For an in-depth introduction, please see this article: http://blog.csdn.net/allen_zhao_2012/article/details/7818315

In fact, for the usual use is very simple, first download Pytty, decompression open found inside there is Plink.exe pscp.exe psftp.exe putty.exe Puttygen.exe Puttytel.exe, such as executable files, if you just want to link the host to do some operations then use the Putty.exe can be one, the specific use can refer to the link above, in order to upload the download file, you need to use Pscp.exe this file.

The main meaning is the PSCP command.

Through the command line into the folder where the Pscp.exe is located (I am in c:\Users\ your own user name \putty) (or configure the environment variable, too lazy to get), the direct input PSCP will see the following prompt:

This has been given a usage, this picture is I in Windows screenshot and then uploaded to ubuntu12.04 below, and then uploaded to the blog. The command is as follows:

C:\Users\ your own user name \PUTTY\PSCP c:users\ username \desktop\pscp.png user name @10.228.145.60:/home

The above command will then upload the pscp.png image on the desktop under Windows to the Server home folder. If you want to download it, the reference usage is simple to set source and the target folder.

For example: C:\Users\ your own user name \putty\pscp-r username @10.228.145.60:/home/nova c:users\ User name \desktop\ will copy the Nova folder recursively to the Windows desktop

Here are some things to keep in mind:

A: To ensure that Linux installed server, if not, install, generally will start, if not started,

/etc/init.d/ssh start

or restart the SSH service

Sudo/etc/init.d/ssh Resar

B: Do not execute the PSCP command through Putty.exe, because Putty.exe will let you link to the host, and then use the PSCP command to copy in the host's own folder, the download is not on the Windows machine.

Use Putty to copy files from Linux hosts to Windows hosts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.